ee.Filter.eq

Filter to metadata equal to the given value.

Returns the constructed filter.

UsageReturns
ee.Filter.eq(name, value)Filter
ArgumentTypeDetails
nameStringThe property name to filter on.
valueObjectThe value to compare against.

Examples

Code Editor (JavaScript)

// The GOES Mesoscale images come in two domains.
// Separate the two groups using ee.Filter.eq.
var goes17_mcmipm = ee.ImageCollection('NOAA/GOES/17/MCMIPM');
var goes17_mcmipm_2019 =
    goes17_mcmipm.filterDate(ee.Date('2019-11'), ee.Date('2019-12'));

var d1 = goes17_mcmipm_2019.filter(ee.Filter.eq('domain', 1));
var d2 = goes17_mcmipm_2019.filter(ee.Filter.eq('domain', 2));
print(goes17_mcmipm_2019.size());  // 55509
print(d1.size());                  // 27842
print(d2.size());                  // 27667