/intake-catalogs

Primary LanguageJupyter Notebook

intake-catalogs

Catalogs based on intake and the plugin intake-xarray.

Quick start

Install intake-xarray:

conda install -c conda-forge intake-xarray

Import the main catalog:

import intake
cat = intake.open_catalog('https://raw.githubusercontent.com/NOC-MSM/intake-catalogs/master/catalog.yaml')

Find all available catalogs:

list(cat)

Find the entries in a catalog (e.g., JASMIN):

list(cat.JASMIN)

Select an entry (e.g., ORCA0083_N006):

# same as cat.JASMIN["ORCA0083_N006"]
cat.JASMIN.ORCA0083_N006

Get the description of an entry:

cat.JASMIN.ORCA0083_N006.description

Get a dictionary with detailed info and metadata of an entry:

# For example, user_parameters tells the additional parameters that can be set,
# such as year, grid, ...
cat.JASMIN.ORCA0083_N006.describe()

Open a catalog entry:

# ds is a xarray.Dataset
ds = cat.JASMIN.ORCA0083_N006.to_dask()

Open a catalog entry using different parameters:

ds = cat.JASMIN.ORCA0083_N006(grid='U', year=1990).to_dask()

Cookbook

Check out the cookbook folder for a collection of recipes to open datasets.