Skip to main content

Xarray backend for Eratos SDK

Project description

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)

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

eratos_xarray-0.1.8.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eratos_xarray-0.1.8-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file eratos_xarray-0.1.8.tar.gz.

File metadata

  • Download URL: eratos_xarray-0.1.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for eratos_xarray-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ce46d59aa032161650aebe1e02867670e0c014ddbbc6996a73f4ba5ff1f05159
MD5 bda84df97688f23984deae9545b73416
BLAKE2b-256 ae1910de3211a28bd015e2a5b1e204c53b3e6bd0dc65589fdf107592bf35232f

See more details on using hashes here.

Provenance

The following attestation bundles were made for eratos_xarray-0.1.8.tar.gz:

Publisher: CD-Release-Prod.yml on eratosio/eratos-xarray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file eratos_xarray-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: eratos_xarray-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for eratos_xarray-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 121a0ccc0e7e1d9c7cb73d73a72318f8805e88168f3d12a91c54e0b6a0a8dfb0
MD5 57774ffee7648b732e56fdb18eb4644e
BLAKE2b-256 9fe5ada6a513a443bbb96d4d20c80edc89b1d8897f1f5654e2eb3659c412ba5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for eratos_xarray-0.1.8-py3-none-any.whl:

Publisher: CD-Release-Prod.yml on eratosio/eratos-xarray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page