Please assist me to better capture temporal changes in NDVI using 2000 to 2017 years, where I want to exclude year 2002, and 2005 as these were drought years. If I exclude these will this affect my Mann Kendall analysis to check for monotonic trends?

var collection = ee.ImageCollection('MODIS/006/MOD13Q1')
                   .filterDate(ee.Date('2007-11-01'), ee.Date('20117-04-30'));

1 Answer 1


I think the best way to do it is to manually get three ImageCollections, omitting the years you don't want, and then merge them again into one ImageCollection.

var collection0 = ee.ImageCollection('MODIS/006/MOD13Q1')

var collection1 = ee.ImageCollection('MODIS/006/MOD13Q1')

var collection2 = ee.ImageCollection('MODIS/006/MOD13Q1')

var collection = ee.ImageCollection(collection0


I hope this helps!

  • Am working to modify the collections for each year to filter the growing season : November to April months.
    – Jerry
    Dec 21, 2018 at 1:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.