Skip to content

Commit a4e3746

Browse files
authored
Merge pull request #102 from bcdev/forman-19-write_levels
Write multi-level datasets
2 parents c5270c5 + b6af3ec commit a4e3746

File tree

8 files changed

+845
-1
lines changed

8 files changed

+845
-1
lines changed

.coveragerc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
omit =
3+
zappend/contrib/*.py

CHANGES.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## Version 0.8.0 (in development)
2+
3+
* Added module `zappend.contrib` that contributes functions to
4+
zappend's core functionality.
5+
6+
* Added experimental function `zappend.contrib.write_levels()` that generates
7+
datasets using the
8+
[multi-level dataset format](https://xcube.readthedocs.io/en/latest/mldatasets.html)
9+
as specified by
10+
[xcube](https://github.com/xcube-dev/xcube).
11+
It resembles the `store.write_data(cube, "<name>.levels", ...)` method
12+
provided by the xcube filesystem data stores ("file", "s3", "memory", etc.).
13+
The zappend version may be used for potentially very large datasets in terms
14+
of dimension sizes or for datasets with very large number of chunks.
15+
It is considerably slower than the xcube version (which basically uses
16+
`xarray.to_zarr()` for each resolution level), but should run robustly with
17+
stable memory consumption.
18+
The function requires `xcube` package to be installed. (#19)
19+
120
## Version 0.7.1 (from 2024-05-30)
221

322
* The function `zappend.api.zappend()` now returns the number of slices

docs/api.md

+8
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ All described objects can be imported from the `zappend.api` module.
4545
::: zappend.api.ConfigLike
4646
options:
4747
show_root_heading: true
48+
49+
## Contributions
50+
51+
::: zappend.contrib
52+
53+
### Function `write_levels()`
54+
55+
::: zappend.contrib.write_levels

tests/contrib/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright © 2024 Norman Fomferra and contributors
2+
# Permissions are hereby granted under the terms of the MIT License:
3+
# https://opensource.org/licenses/MIT.

0 commit comments

Comments
 (0)