Skip to content

Instantly share code, notes, and snippets.

View mahdin75's full-sized avatar
🎯
Focusing

Mahdi Nazari Ashani mahdin75

🎯
Focusing
View GitHub Profile
@mahdin75
mahdin75 / ndvi_modis_gee.js
Last active May 19, 2024 17:43
Download NDVI - MODIS
//google earth engine (GEE) modis - ndvi downlod
var us_extent = ... // create a geometry for the extent of your study area (such as the US). You can draw a rectangle in GEE.
function clp(img) {
return img.clip(us_extent)
}
var dataset = ee.ImageCollection('MODIS/061/MOD13A3').filter(ee.Filter.date('2000-01-01', '2021-01-01'));
var clippedVIIRS = dataset.map(clp);