eurodatacube / eodash-catalog

MIT License
1 stars 0 forks source link

Add new datasets: EL NINO SEA SURFACE TEMPERATURE/MARINE HEATWAVES #177

Open AparicioSF opened 1 month ago

AparicioSF commented 1 month ago
AlessandroScremin commented 1 month ago

Ocean Heat content for the upper 300m (monthly from 2015 to June 2024) Ingested ID: OCEAN_HEAT_CONTENT_UPPER_300M 97577173-d4ef-4425-bd29-d367fe50475d

evalscript //VERSION=3 function setup() { return { input: [{ bands: ["OHC", "dataMask"], // Bands to use from input }], output: { // Output image type and parameters bands: 4, sampleType: "UINT8" // Output as UINT8 } }; }

function evaluatePixel(sample) { // Define the min and max values for scaling var minValue = -2000000000; var maxValue = 30000000000;

// Normalize the OHC value from its range to 0-255 var normalizedOHC = (sample.OHC - minValue) / (maxValue - minValue) * 255;

// Clip the value to the range [0, 255] var scaledOHC = Math.max(0, Math.min(255, normalizedOHC));

// Compute the color gradient var r, g, b;

if (scaledOHC < 85) { // Transition from Blue to Cyan b = 255; g = scaledOHC 3; // Blue to Cyan r = 0; } else if (scaledOHC < 170) { // Transition from Cyan to Yellow b = 255 - (scaledOHC - 85) 3; // Cyan to Yellow g = 255; r = (scaledOHC - 85) 3; // Cyan to Yellow } else { // Transition from Yellow to Red b = 0; g = 255 - (scaledOHC - 170) 3; // Yellow to Red r = 255; // Yellow to Red }

// Set alpha channel based on dataMask var alpha = (sample.dataMask == 1) ? 255 : 0;

return [r, g, b, alpha]; // Return color with alpha channel }

@FedericoRondoni could you add the yaml and MD file ?

santilland commented 3 weeks ago

PLES team to check if data available in openEO, time range 2023-2024 ("worst case" - use landsat data)

FedericoRondoni commented 2 weeks ago

@AlessandroScremin YAML and MD added

santilland commented 2 weeks ago

Integration of Ocean heat content looks good: image

FedericoRondoni commented 2 weeks ago

YAML file for the JAXA dataset ready and uploaded with this pull request https://github.com/eurodatacube/eodash-catalog/pull/183

santilland commented 2 weeks ago

Hello @FedericoRondoni the WMS request says SST_BY_GCOM-W-AMSR_JAXA not found, was only the yaml file prepared but not the data yet ingested?

FedericoRondoni commented 2 weeks ago

YAML file for the WST Sentinel-3 data uploaded here https://github.com/eurodatacube/eodash-catalog/pull/183

FedericoRondoni commented 2 weeks ago

Hello @FedericoRondoni the WMS request says SST_BY_GCOM-W-AMSR_JAXA not found, was only the yaml file prepared but not the data yet ingested?

Exactly. The data still needs to be ingested

AlessandroScremin commented 23 hours ago

@aapopescu @dmoglioni @FedericoRondoni @AparicioSF

the Jaxa SST products for June to August 2023 have been ingested in SH.

Collection name and id: SST_by_GCOM-W-AMSR_JAXA cb154978-c54f-4e15-a39e-5da7e601194d

evalscript //VERSION=3 function setup() { return { input: [{ bands: ["SST", "dataMask"], // Bands to use from input }], output: { // Output image type and parameters bands: 4, sampleType: "UINT8" // Output as UINT8 } }; }

function evaluatePixel(sample) { // Define the min and max values for scaling var minValue = -500; var maxValue = 4000;

// Normalize the OHC value from its range to 0-255 var normalizedOHC = (sample.SST - minValue) / (maxValue - minValue) * 255;

// Clip the value to the range [0, 255] var scaledOHC = Math.max(0, Math.min(255, normalizedOHC));

// Compute the color gradient var r, g, b;

if (scaledOHC < 85) { // Transition from Blue to Cyan b = 255; g = scaledOHC 3; // Blue to Cyan r = 0; } else if (scaledOHC < 170) { // Transition from Cyan to Yellow b = 255 - (scaledOHC - 85) 3; // Cyan to Yellow g = 255; r = (scaledOHC - 85) 3; // Cyan to Yellow } else { // Transition from Yellow to Red b = 0; g = 255 - (scaledOHC - 170) 3; // Yellow to Red r = 255; // Yellow to Red }

// Set alpha channel based on dataMask var alpha = (sample.dataMask == 1) ? 255 : 0;

return [r, g, b, alpha]; // Return color with alpha channel }

AlessandroScremin commented 23 hours ago

@aapopescu for what concerns the WST from Sentinel 3 L2, is on hold due to the long time needed for LST...we can ingest 2/4 days every day...Now we ingested all june and just started July for LST.

But SST from JAXA are ingested now