From dd2b5e29be718b4cccebd953ecf67b5b98e92a1d Mon Sep 17 00:00:00 2001 From: Justin Braaten Date: Mon, 9 Dec 2024 10:08:23 -0800 Subject: [PATCH] Update MODIS veg indices examples MODIS/006/MOD13A1 to MODIS/061/MOD13A1 PiperOrigin-RevId: 704328025 --- samples/javascript/guides/charts_datatable.js | 2 +- samples/javascript/guides/charts_image_collection.js | 10 +++++----- samples/javascript/guides/image_collections10.js | 4 ++-- samples/javascript/guides/resample.js | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/samples/javascript/guides/charts_datatable.js b/samples/javascript/guides/charts_datatable.js index 5b49fa66b..cbd9ce365 100644 --- a/samples/javascript/guides/charts_datatable.js +++ b/samples/javascript/guides/charts_datatable.js @@ -51,7 +51,7 @@ var forest = ee.FeatureCollection('projects/google/charts_feature_example') .filter(ee.Filter.eq('label', 'Forest')); // Load MODIS vegetation indices data and subset a decade of images. -var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1') +var vegIndices = ee.ImageCollection('MODIS/061/MOD13A1') .filter(ee.Filter.date('2010-01-01', '2020-01-01')) .select(['NDVI', 'EVI']); diff --git a/samples/javascript/guides/charts_image_collection.js b/samples/javascript/guides/charts_image_collection.js index a5b58d019..68be92a32 100644 --- a/samples/javascript/guides/charts_image_collection.js +++ b/samples/javascript/guides/charts_image_collection.js @@ -25,7 +25,7 @@ var grassland = ee.FeatureCollection('projects/google/charts_feature_example') .filter(ee.Filter.eq('label', 'Grassland')); // Load MODIS vegetation indices data and subset a decade of images. -var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1') +var vegIndices = ee.ImageCollection('MODIS/061/MOD13A1') .filter(ee.Filter.date('2010-01-01', '2020-01-01')) .select(['NDVI', 'EVI']); @@ -64,7 +64,7 @@ var grassland = ee.FeatureCollection('projects/google/charts_feature_example') .filter(ee.Filter.eq('label', 'Grassland')); // Load MODIS vegetation indices data and subset years 2012 and 2019. -var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1') +var vegIndices = ee.ImageCollection('MODIS/061/MOD13A1') .filter(ee.Filter.or( ee.Filter.date('2012-01-01', '2013-01-01'), ee.Filter.date('2019-01-01', '2020-01-01'))) @@ -103,7 +103,7 @@ print(chart); var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example'); // Load MODIS vegetation indices data and subset a decade of images. -var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1') +var vegIndices = ee.ImageCollection('MODIS/061/MOD13A1') .filter(ee.Filter.date('2010-01-01', '2020-01-01')) .select(['NDVI', 'EVI']); @@ -142,7 +142,7 @@ var forest = ee.FeatureCollection('projects/google/charts_feature_example') .filter(ee.Filter.eq('label', 'Forest')); // Load MODIS vegetation indices data and subset a decade of images. -var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1') +var vegIndices = ee.ImageCollection('MODIS/061/MOD13A1') .filter(ee.Filter.date('2010-01-01', '2020-01-01')) .select(['NDVI', 'EVI']); @@ -176,7 +176,7 @@ print(chart); var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example'); // Load MODIS vegetation indices data and subset a decade of images. -var vegIndices = ee.ImageCollection('MODIS/006/MOD13A1') +var vegIndices = ee.ImageCollection('MODIS/061/MOD13A1') .filter(ee.Filter.date('2010-01-01', '2020-01-01')) .select(['NDVI', 'EVI']); diff --git a/samples/javascript/guides/image_collections10.js b/samples/javascript/guides/image_collections10.js index 3189b8406..dbc5beee1 100644 --- a/samples/javascript/guides/image_collections10.js +++ b/samples/javascript/guides/image_collections10.js @@ -290,7 +290,7 @@ var s2col = ee.ImageCollection('COPERNICUS/S2_SR') var aoi = ee.Geometry.Point(-122.1, 37.2).buffer(1e4); // Filter MODIS NDVI image collection by a date range. -var ndviCol = ee.ImageCollection('MODIS/006/MOD13A1') +var ndviCol = ee.ImageCollection('MODIS/061/MOD13A1') .filterDate('2018-01-01', '2019-01-01') .select('NDVI') // Map over the image collection to calculate regional mean NDVI and add @@ -348,7 +348,7 @@ print('Set vis max to:', ee.Number(percentClip.get(keys.get(1))).round()); // [START earthengine__image_collections10__imageVis02] // Filter MODIS NDVI image collection by a date range. -var ndviCol = ee.ImageCollection('MODIS/006/MOD13A1') +var ndviCol = ee.ImageCollection('MODIS/061/MOD13A1') .filterDate('2018-01-01', '2019-01-01') .select('NDVI'); diff --git a/samples/javascript/guides/resample.js b/samples/javascript/guides/resample.js index d322cff0d..e47c04fac 100644 --- a/samples/javascript/guides/resample.js +++ b/samples/javascript/guides/resample.js @@ -65,7 +65,7 @@ Export.image.toAsset({ // [START earthengine__resample__reduce_resolution] // Load a MODIS EVI image. -var modis = ee.Image(ee.ImageCollection('MODIS/006/MOD13A1').first()) +var modis = ee.Image(ee.ImageCollection('MODIS/061/MOD13A1').first()) .select('EVI'); // Display the EVI image near La Honda, California. @@ -77,7 +77,7 @@ var modisProjection = modis.projection(); print('MODIS projection:', modisProjection); // Load and display forest cover data at 30 meters resolution. -var forest = ee.Image('UMD/hansen/global_forest_change_2015') +var forest = ee.Image('UMD/hansen/global_forest_change_2023_v1_11') .select('treecover2000'); Map.addLayer(forest, {max: 80}, 'forest cover 30 m');