eurodatacube / eodash

Software behind the RACE dashboard by ESA and the European Commission (https://race.esa.int), the Green Transition Information Factory - GTIF (https://gtif.esa.int), as well as the Earth Observing Dashboard by NASA, ESA, and JAXA (https://eodashboard.org)
https://race.esa.int
MIT License
89 stars 43 forks source link

Add sentinel-5p-l2-tropomi as layer to SH #2616

Closed santilland closed 1 day ago

santilland commented 1 week ago

See: https://collections.sentinel-hub.com/sentinel-5p-l2-tropomi/

Once added integrate layer to VIIRS/MODIS fire detections indicator

AlessandroScremin commented 1 week ago

Layer ID TESTING_CO_FROM_SENTINELHUB

working example over Greece, 20230725 youshould have both S5P and S2

s5p image

s2 image

lubojr commented 1 week ago

It works fine to be added as a layer. @AlessandroScremin What is the used evalscript/color range so that we can generate a legend for this layer?

AlessandroScremin commented 1 week ago

It works fine to be added as a layer. @AlessandroScremin What is the used evalscript/color range so that we can generate a legend for this layer?

Hi @lubojr

the eval script is the following

//VERSION=3 var minVal = 0.0; var maxVal = 0.1; var diff = maxVal - minVal; const map = [ [minVal, 0x00007f], [minVal + 0.125 diff, 0x0000ff], [minVal + 0.375 diff, 0x00ffff], [minVal + 0.625 diff, 0xffff00], [minVal + 0.875 diff, 0xff0000], [maxVal, 0x7f0000] ];

const visualizer = new ColorRampVisualizer(map) function setup() { return { input: ["CO","dataMask"], output: { bands: 4 } }; }

function evaluatePixel(samples) { const [r, g, b] = visualizer.process(samples.CO); return [r, g, b, samples.dataMask]; }