I want to generate raster for each month , where the value of the pixel refers to the number of days per month and per year where temperature fall under 0 degree celsius. In this example the year range is [2010,2012], which means that i will get 36 images. But what i get , is 36 images with no band.
Any solution ?
var years = ee.List.sequence(2010,2012);
var months = ee.List.sequence(1,12);
var imcol = ee.ImageCollection("MODIS/006/MOD11A1");
var opla = function(image){ return image.select('LST_Day_1km').multiply(0.02).subtract(273.15).lte(0).clip(table)};
var filtred = imcol.map(opla);
var sommation_frost = function(y){
var sommar = filtred.filter(ee.Filter.calendarRange(y,y,'year'));
var montar = function(m){
var x = sommar.filter(ee.Filter.calendarRange(m,m,'month')).reduce(ee.Reducer.sum())
return x
}
return months.map(montar)
}
var sortie = years.map(sommation_frost)