From fdde0106c5b841d32c6324e5207155a7dc825366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dries=20De=20Bi=C3=A8vre?= <dries.debievre@uclouvain.be> Date: Wed, 5 Mar 2025 13:34:38 +0100 Subject: [PATCH] correct how to read projection --- docs/source/landsat/landsat_gee_2025.ipynb | 2 +- docs/source/sentinel_2_gee/s2_gee_2025.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/landsat/landsat_gee_2025.ipynb b/docs/source/landsat/landsat_gee_2025.ipynb index 87206af..9a31af1 100644 --- a/docs/source/landsat/landsat_gee_2025.ipynb +++ b/docs/source/landsat/landsat_gee_2025.ipynb @@ -241,7 +241,7 @@ "source": [ "```js\n", "// Get projection of the original image\n", - "var projection = l8_filter.first().projection().getInfo()\n", + "var projection = l8_filter.first().select('SR_B4').projection().getInfo()\n", "\n", "// Export the image, specifying the CRS, transform, and region.\n", "Export.image.toDrive({\n", diff --git a/docs/source/sentinel_2_gee/s2_gee_2025.ipynb b/docs/source/sentinel_2_gee/s2_gee_2025.ipynb index 93ee84f..3a6e309 100644 --- a/docs/source/sentinel_2_gee/s2_gee_2025.ipynb +++ b/docs/source/sentinel_2_gee/s2_gee_2025.ipynb @@ -163,7 +163,7 @@ "\n", "```js\n", "// Get projection of the original image\n", - "var projection = s2_filter.first().projection().getInfo()\n", + "var projection = s2_filter.first().select('B2').projection().getInfo()\n", "\n", "// Export the image, specifying the CRS, transform, and region.\n", "Export.image.toDrive({\n", -- GitLab