Skip to content

Commit

Permalink
Update MODIS veg indices examples MODIS/006/MOD13A1 to MODIS/061/MOD13A1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704328025
  • Loading branch information
jdbcode authored and copybara-github committed Dec 9, 2024
1 parent 5fdd92d commit dd2b5e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion samples/javascript/guides/charts_datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down
10 changes: 5 additions & 5 deletions samples/javascript/guides/charts_image_collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down Expand Up @@ -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')))
Expand Down Expand Up @@ -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']);

Expand Down Expand Up @@ -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']);

Expand Down Expand Up @@ -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']);

Expand Down
4 changes: 2 additions & 2 deletions samples/javascript/guides/image_collections10.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');

Expand Down
4 changes: 2 additions & 2 deletions samples/javascript/guides/resample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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');

Expand Down

0 comments on commit dd2b5e2

Please sign in to comment.