Any ideas on how to select image properties: In this instance, I want to mask all crop types except for Rice.
var dataset = ee.ImageCollection('USDA/NASS/CDL')
.filter(ee.Filter.date('2017-01-01', '2018-12-31'))
.first();
var img_cropLC = dataset.select('cropland');
Map.setCenter(-100.55, 40.71, 4);
Map.addLayer(img_cropLC, {}, 'Crop Landcover');
print(img_cropLC)
var img_cropRice = img_cropLC.properties.cropland_class_names.select('Rice')
The last line is incorrect but I am looking for how to navigate into properties -> cropland_class_names -> and the select 'Rice'