Skip to content

MIT-PSFC/xarray-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

xarray tests

poetry install
poetry run benchmark

read

  0.972s	read_data

combine

  4.819s	concat
  0.198s	datatree

hdf5

  0.142s	to_hdf
    394M	ds.h5
119.361s	to_hdf
    114M	dt.h5

zarr

  0.311s	to_zarr
     44M	ds.zarr
 10.663s	to_zarr
    137M	dt.zarr

dataarray

<xarray.DataArray 'ip' (time: 13312)> Size: 53kB
[13312 values with dtype=float32]
Coordinates:
  * time     (time) float32 53kB -2.0 -2.0 -2.0 -1.999 ... 4.288 4.288 4.288
    shot     int32 4B ...

dataset

<xarray.Dataset> Size: 412MB
Dimensions:  (shot: 1000, time: 102966)
Coordinates:
  * time     (time) float32 412kB -3.5 -3.5 -3.5 -3.5 ... 7.36 7.36 7.36 7.36
  * shot     (shot) int32 4kB 1120522001 1120117030 ... 1140408018 1050420012
Data variables:
    ip       (shot, time) float32 412MB nan nan nan nan nan ... nan nan nan nan

datatree

<xarray.DataTree>
Group: /
├── Group: /1120522001
│       Dimensions:  (time: 13312)
│       Coordinates:
│         * time     (time) float32 53kB -2.0 -2.0 -2.0 -1.999 ... 4.288 4.288 4.288
│           shot     int32 4B ...
│       Data variables:
│           ip       (time) float32 53kB ...

<snip>

└── Group: /1050420012
        Dimensions:  (time: 13312)
        Coordinates:
          * time     (time) float32 53kB -2.0 -2.0 -2.0 -1.999 ... 4.288 4.288 4.288
            shot     int32 4B ...
        Data variables:
            ip       (time) float32 53kB ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages