JuliaDataCubes / YAXArrays.jl

Yet Another XArray-like Julia package
https://juliadatacubes.github.io/YAXArrays.jl/
Other
101 stars 18 forks source link

Make it possible to create a skeleton without allocating memory. #343

Closed Qfl3x closed 11 months ago

Qfl3x commented 11 months ago

The current guide on creating a skeleton:

using YAXArrays, Zarr
a = YAXArray(zeros(Union{Missing, Int32},10,20))
f = tempname();
r = savecube(a,f,driver=:zarr,skeleton=true);
all(ismissing,r[:,:])

allocates memory during the zeros call, which is counter-intuitive to the idea of a skeleton, as well as very memory intensive.

lazarusA commented 11 months ago

please consider doing a PR using FillArrays, see here: https://github.com/JuliaDataCubes/YAXArrays.jl/issues/248 (duplicated of this)

lazarusA commented 11 months ago

close by https://github.com/JuliaDataCubes/YAXArrays.jl/pull/344