Describe zarr stores from the command line.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zarrdump-0.6.1.tar.gz.
File metadata
- Download URL: zarrdump-0.6.1.tar.gz
- Upload date:
- Size: 6.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb4caf1ba00b981d9cf8b371705be1e2e77c7efa5034de8dc0da0cd06ffaef55
|
|
| MD5 |
ee3f7644618be24afa8f4e114e600009
|
|
| BLAKE2b-256 |
38e43d09bafc4aed72f888f475d91416094a9da585abd82351f866125dd077c9
|
File details
Details for the file zarrdump-0.6.1-py3-none-any.whl.
File metadata
- Download URL: zarrdump-0.6.1-py3-none-any.whl
- Upload date:
- Size: 5.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4ee295a3767b9779302798227d12582b434ed81b82b375b82aaf678ac08f1b6
|
|
| MD5 |
b67913617efcd418ddfe7f7d4d26136b
|
|
| BLAKE2b-256 |
a6af4dbb69527bf692320b40a631f6c27aa542254fbedcb6382c04ae1a90e483
|