I am trying to download a soil moisture layer for a single day from google earth engine using the following code:
var dataset = ee.ImageCollection('NASA_USDA/HSL/SMAP_soil_moisture')
.filter(ee.Filter.date('2010-02-01'));
var soilMoisture = dataset.select('ssm');
// Create a geometry representing an export region.
var geometry = ee.Geometry.Rectangle([-76.5060023341, 3.67837906194, -76.0152561351, 3.16455715204]);
// Export the image, specifying scale and region.
Export.image.toDrive({
image: dataset.select('ssm').first(),
description: 'soilMoisture',
scale: 250,
folder: 'google_earth',
region: geometry,
fileFormat: 'GeoTIFF'
})
but I got the following error: Error: Image.clipToBoundsAndScale: Parameter 'input' is required.
I have checked the records of the NASA_USDA/HSL/SMAP_soil_moisture and it goes from Jan 1, 2010 - Nov 16, 2020, therefore it should be a tiff for that day.
Any idea why it is not working?