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
Hey there, rioxarray exposes an argument mask_and_scale when opening a raster, which lazily scales the raster using the scales and offsets in metadata. Could we have this option in Rasters.jl, possibly in the Raster function?
Here is a quick proposition:
functionscale(raster::Raster)
T =typeof(raster.metadata["scale"])
(raster .|> T) .* raster.metadata["scale"] .+ raster.metadata["offset"]
end
The text was updated successfully, but these errors were encountered:
Hey there,
rioxarray
exposes an argumentmask_and_scale
when opening a raster, which lazily scales the raster using the scales and offsets in metadata. Could we have this option inRasters.jl
, possibly in theRaster
function?Here is a quick proposition:
The text was updated successfully, but these errors were encountered: