Skip to main content

An intake plugin for parsing an ESM (Earth System Model) Collection/catalog and loading assets (netCDF files and/or Zarr stores) into xarray datasets.

Project description

GitHub Workflow Status https://img.shields.io/circleci/project/github/intake/intake-esm/master.svg?style=for-the-badge&logo=circleci https://img.shields.io/codecov/c/github/intake/intake-esm.svg?style=for-the-badge Documentation Status Python Package Index Conda Version Zenodo

Intake-esm

Motivation

Computer simulations of the Earth’s climate and weather generate huge amounts of data. These data are often persisted on HPC systems or in the cloud across multiple data assets of a variety of formats (netCDF, Zarr, etc…). Finding, investigating, loading these data assets into compute-ready data containers costs time and effort. The data user needs to know what data sets are available, the attributes describing each data set, before loading a specific data set and analyzing it.

Finding, investigating, loading these assets into data array containers such as xarray can be a daunting task due to the large number of files a user may be interested in. Intake-esm aims to address these issues by providing necessary functionality for searching, discovering, data access/loading.

Overview

intake-esm is a data cataloging utility built on top of intake, pandas, and xarray, and it’s pretty awesome!

  • Opening an ESM collection definition file: An ESM (Earth System Model) collection file is a JSON file that conforms to the ESM Collection Specification. When provided a link/path to an esm collection file, intake-esm establishes a link to a database (CSV file) that contains data assets locations and associated metadata (i.e., which experiement, model, the come from). The collection JSON file can be stored on a local filesystem or can be hosted on a remote server.

    >>> import intake
    >>> col_url = "https://raw.githubusercontent.com/NCAR/intake-esm-datastore/master/catalogs/pangeo-cmip6.json"
    >>> col = intake.open_esm_datastore(col_url)
  • Search and Discovery: intake-esm provides functionality to execute queries against the database:

    >>> cat = col.search(experiment_id=['historical', 'ssp585'], table_id='Oyr',
    ...          variable_id='o2', grid_label='gn')
  • Access: when the user is satisfied with the results of their query, they can ask intake-esm to load data assets (netCDF/HDF files and/or Zarr stores) into xarray datasets:

    >>> dset_dict = cat.to_dataset_dict(zarr_kwargs={'consolidated': True, 'decode_times': False},
    ...                        cdf_kwargs={'chunks': {}, 'decode_times': False})

See documentation for more information.

Installation

Intake-esm can be installed from PyPI with pip:

pip install intake-esm

It is also available from conda-forge for conda installations:

conda install -c conda-forge intake-esm

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

intake-esm-2020.8.15.tar.gz (287.8 kB view details)

Uploaded Source

Built Distribution

intake_esm-2020.8.15-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file intake-esm-2020.8.15.tar.gz.

File metadata

  • Download URL: intake-esm-2020.8.15.tar.gz
  • Upload date:
  • Size: 287.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for intake-esm-2020.8.15.tar.gz
Algorithm Hash digest
SHA256 92a3860978bd73e7a1f9c79ee8c827464498b787c3072b1345ccdd4f29a4f195
MD5 8e34f3da7c6abe6fc81f2dfcdf58ff98
BLAKE2b-256 5a0bdbefde3cd65b5a21f540b46784884870085ac6ac89557b674f69163bb55d

See more details on using hashes here.

File details

Details for the file intake_esm-2020.8.15-py3-none-any.whl.

File metadata

  • Download URL: intake_esm-2020.8.15-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for intake_esm-2020.8.15-py3-none-any.whl
Algorithm Hash digest
SHA256 7c83d7fbfcd864c08d43f32664cafb1c2255fc3ec50f65dc1bfce97a3787bd7a
MD5 1784b495b5f42edafec741b013ee9bfa
BLAKE2b-256 a34ee257a0126bd4734ade1c2735279285fa2da07617a0f1023a8b455495363f

See more details on using hashes here.

Supported by

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