Hello,
last week I ran this command:
raster_altitude_agreg ← aggregate(edm, fact=res(tasr1)/res(edm), fun=mean, na.rm=TRUE)
altitudeMoyenne ← raster::extract(raster_altitude_agreg , v_elev)
And it worked perfectly.
But now, it doesn t work anymore. I still get an error message:
AltitudeMoyenne ← raster::extract(raster_altitude_agreg,coord_lonlatC)
Error in file(fn, “rb”) : cannot open the connection
In addition: Warning message:
In file(fn, “rb”) :
cannot open file ‘/tmp/RtmpiwjSJ7/raster/r_tmp_2024-04-29_084403.028646_2725427_25595.gri’: No such file or directory
altitudeMoyenne ← raster::extract(raster_altitude_agreg , v_elev)
Error in file(fn, “rb”) : cannot open the connection
In addition: Warning message:
In file(fn, “rb”) :
cannot open file ‘/tmp/RtmpiwjSJ7/raster/r_tmp_2024-04-29_084403.028646_2725427_25595.gri’: No such file or directory
I am not sure to understand what is happening ?
My working directory is normally the same.
This is the same for writeRaster() function.
Thank you in advance.
Mariana