I have an image collection of different anomaly values for a specific time period. I'm simply looking to count how many of these values are over 1 in my time period.
This is my code
// create collection
var collection = ee.ImageCollection('NASA/OCEANDATA/MODIS-Aqua/L3SMI')
.select('sst')
.map(function(image){return image.clip(EEZ)});
// get mean value over ten years
var reference = collection.filterDate('2002-01-01', '2012-12-31')
.sort('system:time_start', false);
//calculate anomaly for 2018
var series = collection.filterDate('2018-01-01', '2018-12-31').map(function(image) {
return image.subtract(mean)
.set('system:time_start', image.get('system:time_start'));
I thought there may have been a way of adding the band value to a property for each image and then filtering the metadata of this collection for values 1 or over, but I can't seem to find a way of doing it.
Are there other ways of filtering/removing data values below specific targets?