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
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.3.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file zarrdump-0.3.0.tar.gz
.
File metadata
- Download URL: zarrdump-0.3.0.tar.gz
- Upload date:
- Size: 3.9 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 | a3a6028df9380d2d060419e32d7287056ff41eb21008231d7849d0f75d28994d |
|
MD5 | 48b5fa3cdf9757c08ca2b4b1f018819e |
|
BLAKE2b-256 | 3f852aded763ef374baf2deafb925469d555727f1a0998dad9ca0d8db8bac22e |
File details
Details for the file zarrdump-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: zarrdump-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.3 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 | 14a935ebf1d46851df44bc4edbba514438e98d0c21ff109de29766b450f72c57 |
|
MD5 | 099af0b2fc64b253637f53266761b53e |
|
BLAKE2b-256 | 9e291285fb4cebda9a1e4488a2e017888ea95974e88c0263b1d28300c22be8dd |