Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skeleton example with fillarrays #344

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.9.3"
julia_version = "1.9.0"
manifest_format = "2.0"
project_hash = "e18cc0fe4d9afd9d2eb46389f66fe2261ad168ab"
project_hash = "774cd2545609e2b3f1430cf0b0273c5619a0c0dc"

[[deps.ANSIColoredPrinters]]
git-tree-sha1 = "574baf8110975760d391c710b6341da1afa48d8c"
Expand Down Expand Up @@ -265,7 +265,7 @@ weakdeps = ["Dates", "LinearAlgebra"]
[[deps.CompilerSupportLibraries_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
version = "1.0.5+0"
version = "1.0.2+0"

[[deps.ConcurrentUtilities]]
deps = ["Serialization", "Sockets"]
Expand Down Expand Up @@ -1454,7 +1454,7 @@ version = "0.42.2+0"
[[deps.Pkg]]
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
version = "1.9.2"
version = "1.9.0"

[[deps.PkgVersion]]
deps = ["Pkg"]
Expand Down Expand Up @@ -2086,7 +2086,7 @@ version = "0.6.1"
deps = ["CFTime", "DataStructures", "Dates", "DimensionalData", "DiskArrayTools", "DiskArrays", "Distributed", "DocStringExtensions", "Glob", "Interpolations", "IntervalSets", "IterTools", "Markdown", "OffsetArrays", "OnlineStats", "Optim", "OrderedCollections", "ParallelUtilities", "ProgressMeter", "Reexport", "Requires", "Statistics", "StatsBase", "Tables", "WeightedOnlineStats", "YAXArrayBase"]
path = ".."
uuid = "c21b50f5-aa40-41ea-b809-c0f5e47bfa5c"
version = "0.5.1"
version = "0.5.2"

[[deps.Zarr]]
deps = ["AWSS3", "Blosc", "CodecZlib", "DataStructures", "Dates", "DiskArrays", "HTTP", "JSON", "LRUCache", "OffsetArrays", "OpenSSL", "Pkg", "URIs"]
Expand Down Expand Up @@ -2132,7 +2132,7 @@ version = "0.15.1+0"
[[deps.libblastrampoline_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
version = "5.8.0+0"
version = "5.7.0+0"

[[deps.libfdk_aac_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
Expand Down
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterMarkdown = "997ab1e6-3595-5248-9280-8efb232c3433"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
EarthDataLab = "359177bc-a543-11e8-11b7-bb015dba3358"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f"
GeoJSON = "61d90e0f-e114-555e-ac52-39dfb47a3ef9"
Expand Down
11 changes: 7 additions & 4 deletions docs/examples/UserGuide/saving.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ open_dataset(f, driver=:zarr)

# ## Datacube Skeleton without the actual data
# Sometimes one merely wants to create a datacube "Skeleton" on disk and gradually fill it with data.
# Here we create YAXArray and write only the axis data and array metadata to disk,
# Here we make use of FillArrays to create a YAXArray and write only the axis data and array metadata to disk,
# while no actual array data is copied:

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

# The `skeleton` argument is also available for `savedataset`.
# If using FillArrays is not possible, using the `zeros` function works as well, though it does allocate the array
# in memory.

# The `skeleton` argument is also available for `savedataset`.
Loading