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
When loading a RasterStack using the directory path containing the rasters instead of filenames, the Rasters are loaded to disk even when using lazy = true.
An example reproducing this is:
using Rasters, ArchGDAL
r = Raster(rand(100, 100), dims = (X(1:100), Y(1:100)), missingval = NaN)
dir = "mydata"
if ~isdir(dir) mkdir(dir) end
for i in 1:10
write("$dir/raster_$i.tif", r)
end
stack = RasterStack(dir, lazy = true)
Rasters.isdisk(stack) ## false!
files = ["$dir/raster_$i.tif" for i in 1:10]
stack = RasterStack(files, lazy = true)
Rasters.isdisk(raster1) ## true
The text was updated successfully, but these errors were encountered:
When loading a RasterStack using the directory path containing the rasters instead of filenames, the Rasters are loaded to disk even when using
lazy = true
.An example reproducing this is:
The text was updated successfully, but these errors were encountered: