Compare two rasters in R with the cell value from one replacing the cell value from a

المشرف العام

Administrator
طاقم الإدارة
I am trying to create a single raster from two rasters. The first raster is made up of all 0 values and the second is made up of the current date value (formatted in days from 001 to 365). The problem is using raster overlay I am struggling to get the result I am after. I can combine the to using the following without any issue:

zeroRaster
 
أعلى