Xarray support for Eratos SDK
Provides an Xarray backend for Eratos SDK (<www.eratos.com>). The backend supports lazy loading remote datasets.
Usage
Gridded datasets may be opened in xarray by passing in a valid ERN to the path argument and then supplying either an Eratos credentials object to eratos_auth
or an Eratos adapter object to eratos_adapter.
See below for a minimal example to open the SILO maximum temperature dataset.
from eratos.creds import AccessTokenCreds
import xarray as xr
eratos_id = 'ENTER YOUR ERATOS ID'
eratos_secret = 'ENTER YOUR ERATOS SECRET KEY'
ecreds = AccessTokenCreds(eratos_id, eratos_secret)
silo = xr.open_dataset('ern:e-pn.io:resource:eratos.blocks.silo.maxtemperature', eratos_auth=ecreds)
print(silo)
alternatively an initialised adapter object can be passed through. This is useful to reuse the same session.
from eratos.creds import AccessTokenCreds
from eratos.adapter import Adapter
import xarray as xr
eratos_id = 'ENTER YOUR ERATOS ID'
eratos_secret = 'ENTER YOUR ERATOS SECRET KEY'
ecreds = AccessTokenCreds(eratos_id, eratos_secret)
adapter = Adapter(ecreds)
silo = xr.open_dataset('ern:e-pn.io:resource:eratos.blocks.silo.maxtemperature', eratos_adpater=adapter)
print(silo)
Release files for eratos-xarray 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eratos_xarray-0.2.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eratos_xarray-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / eratos_xarray-0.2.0.tar.gz
| Download URL | eratos_xarray-0.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3495b742db9322df16c9a333cec73f1ed3c252e8cd7c347e7a7e6a67438e93a5
|
|
BLAKE2b-256 checksum How to use checksums |
fffe3a7dc571ceaaf764dfe9ef79900d4b3d6248f3fd280e69f6e42a7bb23eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2025.
Transparency logRelease files / eratos_xarray-0.2.0-py3-none-any.whl
| Download URL | eratos_xarray-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b73631ff5c0086216b59e979c40205a6e8ce3523054d82d864a4d74084713a1e
|
|
BLAKE2b-256 checksum How to use checksums |
4b9b61bfee3374f65b2eade36f1a4c0b29203384388e02d3a94f73d2ae6984d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2025.
Transparency log