You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reading a large number of ASCCI files from four years of daily data, and packing it on an SpatRaster, then I'm assing it dates and saving it as an .nc file using writeCDF, but I get:
"Error: std::bad_alloc".
I already did this about two months ago for rasters of the same size but with more years and it worked perfectly. Now when I run 4 years, I get the mentioned error.
If I run 3 years I get this one:
"Error en (function (cond) : error in evaluating the argument 'x' in selecting a method for function 'crs': std::bad_alloc",
And if I run 2 years it seems to work but I don't think is a memory problem because this is the output from mem_info(writeCDF(temp_rasters3, name, overwrite=TRUE,compression=9)):
I was trying to attach the temp raster made when reading ASCCI files but is too big (10gb), I'm not attaching code because ASCCI files are bigger and I'm only reading it, changing crs, and packaging. The errors mentioned are when trying to save it as .nc, as raster there's no problem:
I am reading a large number of ASCCI files from four years of daily data, and packing it on an SpatRaster, then I'm assing it dates and saving it as an .nc file using writeCDF, but I get:
I already did this about two months ago for rasters of the same size but with more years and it worked perfectly. Now when I run 4 years, I get the mentioned error.
If I run 3 years I get this one:
And if I run 2 years it seems to work but I don't think is a memory problem because this is the output from mem_info(writeCDF(temp_rasters3, name, overwrite=TRUE,compression=9)):
I was trying to attach the temp raster made when reading ASCCI files but is too big (10gb), I'm not attaching code because ASCCI files are bigger and I'm only reading it, changing crs, and packaging. The errors mentioned are when trying to save it as .nc, as raster there's no problem:
I'm using Windows 11 Pro 64, this is the output of
packageVersion("terra")
(I'm using dev version) and ofterra::gdal(lib="all")
:These are the options for Terra, but I also tried the default:
Thank you in advance, I look forward to your reply.
The text was updated successfully, but these errors were encountered: