I am trying to export yearly median MODIS-based NDVI products at 250m spatial resolution. I am using the 16 day MODIS/061/MOD13Q1 product. I have found this code which I am following (https://gis.stackexchange.com/questions/356857/exporting-cloud-masked-modis-image-collection-from-google-earth-engine).
After some modifications (i.e., I am interested in a single yearly median image) on the code, the image I produced looks like this (image attached).
Because I have very little knowledge in Google Earth Engine, I wanted to ask if the code to generate yearly median MODIS/061/MOD13Q1 product (free of cloud, cloud shadows and bad quality pixels) is correct.
I am asking this, because the areas highlighted in red are water bodies and, as far as I know, water bodies should have negative NDVI values. As you can see from the picture, the NDVI range of my image has no negative values (0.0066-0.7318).
Here is the code (https://code.earthengine.google.com/ecaeb390f70aeb105d0b076e653341cd).