Skip to main content

Describe zarr stores from the command line.

Project description

https://img.shields.io/pypi/v/zarrdump.svg

Describe zarr stores from the command line. A path to any filesystem implemented by fsspec is valid.

Installation

$ pip install zarrdump

Usage

If zarr store can be opened by xarray, the xarray representation will be displayed:

$ zarrdump gs://bucket/dataset.zarr
<xarray.Dataset>
Dimensions:  (lat: 73, lon: 144, time: 32)
Coordinates:
* lat      (lat) float64 -90.0 -87.5 -85.0 -82.5 -80.0 ... 82.5 85.0 87.5 90.0
* lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 350.0 352.5 355.0 357.5
* time     (time) object 2016-12-01 00:00:00 ... 2017-01-01 00:00:00
Data variables:
    ps       (time, lat, lon) float32 dask.array<chunksize=(4, 73, 144), meta=np.ndarray>
    ts       (time, lat, lon) float32 dask.array<chunksize=(4, 73, 144), meta=np.ndarray>

Can show information for a particular variable/array:

$ zarrdump -v ts gs://bucket/dataset.zarr
<xarray.DataArray 'ts' (time: 32, lat: 73, lon: 144)>
dask.array<zarr, shape=(32, 73, 144), dtype=float32, chunksize=(4, 73, 144), chunktype=numpy.ndarray>
Coordinates:
* lat      (lat) float64 -90.0 -87.5 -85.0 -82.5 -80.0 ... 82.5 85.0 87.5 90.0
* lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 350.0 352.5 355.0 357.5
* time     (time) object 2016-12-01 00:00:00 ... 2017-01-01 00:00:00
Attributes:
    longname:  surface temperature
    units:     K

Diagnostic information will also be printed for zarr arrays or zarr groups which do not represent xarray datasets:

$ zarrdump group.zarr
Name        : /
Type        : zarr.hierarchy.Group
Read-only   : False
Store type  : fsspec.mapping.FSMap
No. members : 2
No. arrays  : 2
No. groups  : 0
Arrays      : bar, foo

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

zarrdump-0.4.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

zarrdump-0.4.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file zarrdump-0.4.0.tar.gz.

File metadata

  • Download URL: zarrdump-0.4.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for zarrdump-0.4.0.tar.gz
Algorithm Hash digest
SHA256 deb32817e7d11d6e982d365d0846bd46cd169297e8080eb9b5dee85b4e41c482
MD5 ff61e994b53588f933357871337e1c07
BLAKE2b-256 6a7b304930ebd7e012c670bc2c8c49278e28ea96b5639cd32ed99edb040ee42e

See more details on using hashes here.

File details

Details for the file zarrdump-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: zarrdump-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for zarrdump-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d813e55a7e85cb1159714a157faca68c9ebc7c27e455a9505d1b1170d863ada4
MD5 b4064e339eac45dfa34eb065a6e2cd19
BLAKE2b-256 dd6e1d58043529fb99a7a9533cfaee6cbffa771fb2450d3cb026fe4de33c2d31

See more details on using hashes here.

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