From c88b1193203228088bae7c97c2f9ba9f56164d8f Mon Sep 17 00:00:00 2001 From: azlinszky Date: Wed, 19 Mar 2025 10:27:51 +0100 Subject: [PATCH 1/3] added magic eyes script to sentinel-2.md --- sentinel-2/sentinel-2.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sentinel-2/sentinel-2.md b/sentinel-2/sentinel-2.md index 4c4f358c..291b64f0 100644 --- a/sentinel-2/sentinel-2.md +++ b/sentinel-2/sentinel-2.md @@ -157,6 +157,7 @@ Dedicated to supplying data for [Copernicus services](https://www.esa.int/Our_Ac - [Total Ozone Column over Antarctica snow](/sentinel-2/ozone_column_over_snow) - [BRDF normalisation](/sentinel-2/brdf) - [Simple Panchromatic](/sentinel-2/simple_panchromatic) - Create a simple greyscale visualization by averaging the 10m true color and NIR bands + - [Magic Eyes](/sentinel-2/magic_eyes) - A composite optimized for visual interpretation of land cover #### Scripts including machine learning techniques (eo-learn) From 6229fac558684c33262cc8c69362debfa37063f6 Mon Sep 17 00:00:00 2001 From: azlinszky Date: Wed, 19 Mar 2025 11:55:23 +0100 Subject: [PATCH 2/3] fixed wrong example location for panchromatic script --- sentinel-2/simple_panchromatic/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentinel-2/simple_panchromatic/index.md b/sentinel-2/simple_panchromatic/index.md index 75caafcb..26523c52 100644 --- a/sentinel-2/simple_panchromatic/index.md +++ b/sentinel-2/simple_panchromatic/index.md @@ -10,8 +10,8 @@ scripts: - script_mosaics.js examples: - zoom: '14' - lat: '42.76703' - lng: '36.823' + lat: '-1.29954' + lng: '36.85158' datasetId: S2L2A fromTime: '2025-03-03T00:00:00.000Z' toTime: '2025-03-03T23:59:59.999Z' From c3729c0613ba1f87b1fdfd0c96374edf7b0206b8 Mon Sep 17 00:00:00 2001 From: azlinszky Date: Wed, 19 Mar 2025 13:22:03 +0100 Subject: [PATCH 3/3] corrected band error in simple panchromatic mosaic script --- sentinel-2/simple_panchromatic/script_mosaics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentinel-2/simple_panchromatic/script_mosaics.js b/sentinel-2/simple_panchromatic/script_mosaics.js index 8d9a0a07..d9b9814a 100644 --- a/sentinel-2/simple_panchromatic/script_mosaics.js +++ b/sentinel-2/simple_panchromatic/script_mosaics.js @@ -5,7 +5,7 @@ function setup() { return { - input: ["B01", "B02", "B03", "B08", "dataMask"], + input: ["B02", "B03", "B04", "B08", "dataMask"], output: { bands: 4 } }; } @@ -14,7 +14,7 @@ function setup() { function evaluatePixel(sample) { // Calculate the mean of the bands - let pan = (sample.B01 + sample.B02 + sample.B03 + sample.B08) / 4; + let pan = (sample.B02 + sample.B03 + sample.B04 + sample.B08) / 4; return [gain * pan, gain * pan, gain * pan, sample.dataMask]; } \ No newline at end of file