I am trying to visualize NDVI for a specific boundary that I have imported from ArcMap. When I filter the NAIP imagery by the boundary it works perfectly, but when I try and filter the MODIS by the boundary I only receive an output of the NDVI values for the entire dataset (world). This causes problems later on when I need to use the .map function to add the 'NDVI' band to the clipped Naip imagery.
Below is a segment of my code where geom references the imported polygon. I
I am new to gee and any help would be appreciatedGoogle Earth Engine.
var geom = table2
var naip = ee.ImageCollection("USDA/NAIP/DOQQ")
.filterDate('2011-07-03','2011-08-12')
.filterBounds(geom);
Map.addLayer(naip);
var mod = ee.ImageCollection("MODIS/006/MOD13A2")
.filterDate('2011-07-03','2011-08-12')
.filterBounds(geom)
.select('NDVI');
Map.addLayer(mod);