R/ic_add_month_property.R

Defines functions ic_add_month_property

ic_add_month_property <- function(ic,name="moy"){
  ic$map(
    function(img){
      moy = ee$Date(img$get('system:time_start'))$getRelative("month","year")
      img$set(name,moy)
    }
  )

}
impact-initiatives-geospatial/easyrgee documentation built on March 26, 2022, 10:42 p.m.