Skip to main content

Tool for robustly creating and updating Zarr datacubes from smaller slices

Project description

 zappend

CI codecov PyPI Version Conda Version Code style: black Binder GitHub License


zappend is a tool written in Python that is used for robustly creating and updating Zarr datacubes from smaller dataset slices. It is built on top of the awesome Python packages xarray and zarr.

Motivation

The objective of zappend is to address recurring memory issues when generating large geospatial datacubes using the Zarr format by subsequently concatenating data slices along an append dimension, e.g., time (the default) for geospatial satellite observations. Each append step is atomic, that is, the append operation is a transaction that can be rolled back, in case the append operation fails. This ensures integrity of the target data cube.

Features

The zappend tool provides the following features:

  • Locking: While the target dataset is being modified, a file lock is created, effectively preventing concurrent dataset modifications.
  • Transaction-based dataset appends: On failure during an append step, the transaction is rolled back, so that the target dataset remains valid and preserves its integrity.
  • Filesystem transparency: The target dataset may be generated and updated in any writable filesystems supported by the fsspec package. The same holds for the slice datasets to be appended.
  • Dataset polling: The tool can be configured to wait for slice datasets to become available.
  • CLI and Python API: The tool can be used in a shell using the zappend command or from Python. When used from Python using the zappend() function, slice datasets can be passed as local file paths, URIs, as datasets of type xarray.Dataset, or as custom zappend.api.SliceSource objects.

More about zappend can be found in its documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zappend-0.4.1.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

zappend-0.4.1-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file zappend-0.4.1.tar.gz.

File metadata

  • Download URL: zappend-0.4.1.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for zappend-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f59c020627750deeee9c7267aec87ae4c398a0bad35618e005faef33e42f6a32
MD5 079dbc2308716e3cb50094965d0ceb95
BLAKE2b-256 d3123ff04d8507642c89f7b6b7b3efd179a373df093dc21c831e7296d655fa67

See more details on using hashes here.

Provenance

File details

Details for the file zappend-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: zappend-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for zappend-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 001718c3fb900226860275c164242bd9bd847512403c9d2c9f98130d35a66459
MD5 f94ab956a9b4fea17472086a02196706
BLAKE2b-256 2d89cc585b73fdb753eb4c193160a7ffe6b5576f68de83e35cc4d44209de75e6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page