I have a multiband raster of the Arctic showing the day of the year on which snow melts. I have grid cell values that equal 0 but they should be 365 as the snow never melts. I have tried to use the
raster calculator to set all the grid values that were 0 to 365:
("arctic@1" = 0) * "arctic@1"
, but this only gives me a true or false raster. I want it to be conditional, if
"arctic@1" = 0 then
I also visited this advice, and it gave me values of 1.78e+308 and -1.78e+308 which is also wrong.
How can I perform a conditional statement in which I change the
365's for a multiband raster? I can do this in
R, but do not know how to perform it in the latter.