Last active
October 29, 2020 15:22
-
-
Save jbusecke/a7ef34b037ba5c40b670e8a4dc202429 to your computer and use it in GitHub Desktop.
Pangeo Blog 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import intake | |
import matplotlib.pyplot as plt | |
import xarray as xr | |
import numpy as np | |
import cmocean.cm as cmo | |
url = "https://raw.githubusercontent.com/NCAR/intake-esm-datastore/master/catalogs/pangeo-cmip6.json" | |
col = intake.open_esm_datastore(url) | |
cat = col.search( | |
table_id='Omon', | |
grid_label='gn', | |
experiment_id='historical', | |
member_id='r1i1p1f1', | |
variable_id=['cfc11', 'so', 'thetao'], | |
source_id=['CESM2'] | |
) | |
from cmip6_preprocessing.preprocessing import combined_preprocessing | |
ddict = cat.to_dataset_dict( | |
zarr_kwargs={'consolidated':True, 'decode_times':True}, | |
preprocess=combined_preprocessing | |
) | |
ds = ddict['CMIP.NCAR.CESM2.historical.Omon.gn'] | |
ds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment