Commit 44ff19ce authored by alain's avatar alain 🐙
Browse files

first stub satellite data

parent 80dc4468
import luchtmeetnet from "./sources/luchtmeetnet"
import teom from "./sources/teom"
import holu from "./sources/holu"
//import sentinel from "./sources/sentinel"
const colors = {
green: "#61b53d",
......@@ -106,6 +107,34 @@ export const dataGroups = [
}
},
// {
// title: "satelietdata",
// parameters: {
// "pm25-s": {
// id: "pm25-s",
// label: "fijn stof (PM 2.5)",
// unit: " μg/m3",
// range: [0, 150],
// legend: {
// 0: { label: "Goed", color: colors.green },
// 35: { label: "Matig", color: colors.yellow },
// 70: { label: "Onvoldoende", color: colors.orange },
// 105: { label: "Slecht", color: colors.red },
// 150: { label: "Zeer slecht", color: colors.purple },
// },
// formula: "PM25",
// tooltip: "PM2.5 is een verzamelnaam voor zwevende, inhaleerbare deeltjes met een maximale doorsnede van 0,0025 millimeter. De wettelijke norm is een jaargemiddelde van 25 (μg/m3). Doordat PM2.5 nog kleiner is dan PM10 kunnen deze deeltjes dieper doordringen in de longen en zijn ze schadelijker voor de gezondheid.",
// more: "https://www.luchtmeetnet.nl/uitleg",
// type: "HeatmapLayer",
// sources: [
// sentinel
// ]
// }
// }
// }
// {
// title: "weerdata",
// parameters: {
......
import { addMissingHours } from "../../data-on-a-map-app/src/util/data"
export default {
name: "sentinel",
sides: 24,
angle: 0,
factor: 0.5,
all: async function getAllSentinel(parameter) {
try {
const nw = [3.4, 53.5]
const se = [7.2, 50.7]
let data = []
const cellSize = 5000
const dirtyEsimate = 111319.5
const longDelta = cellSize / dirtyEsimate
const latDelta = Math.abs(cellSize/(dirtyEsimate * (Math.cos(nw[0]))))
for (let long = nw[1]; long > se[1]; long = long - longDelta) {
for (let lat = nw[0]; lat < se[0]; lat = lat + latDelta) {
data.push({
coordinates: [lat, long],
value: Math.random() * 100
})
}
}
return data
} catch (error) {
console.log(error)
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment