I'm trying to calculate GPM v6 annual precipitation using the google earth engine. but show this error: Line 11: ee.ImageCollection(...).select(...).filterDate(...).filterBounds(...).clip is not a function
I'm using this code:
Map.addLayer(geometry);
Map.centerObject(geometry);
var ano_inicial = 2000
var ano_final = 2020
var mes = ee.List.sequence(1,12)
var intervalo = ee.List.sequence(ano_inicial,ano_final)
var inicio = ee.Date.fromYMD(ano_inicial,1,1);
var fim = ee.Date.fromYMD(ano_final,12,31);
var GPM = ee.ImageCollection('NASA/GPM_L3/IMERG_V06')
.select('IRprecipitation')
.filterDate(inicio,fim)
.filterBounds(geometry)
.clip(geometry);
var GPM_Anual = ee.ImageCollection.fromImages(
intervalo.map(function (ano) {
var annual = GPM.filter(ee.Filter.calendarRange(ano,ano,'year'))
.sum()
.multiply(24*30*12)
.clip(table)
return annual
.set('year',ano)
.set('system:time_start',ee.Date.fromYMD(ano,1,1))
}))
Export.image.toDrive({
image : GPM_Anual,
description : 'GPM_annual_2000_2020',
scale : 1000,
region : geometry,
maxPixels : 1e9
});
what is wrong?