Skip to content

Instantly share code, notes, and snippets.

@cortehz
Created November 9, 2022 01:06
Show Gist options
  • Save cortehz/7d150e276c6e63c9ea91958a7b50aea6 to your computer and use it in GitHub Desktop.
Save cortehz/7d150e276c6e63c9ea91958a7b50aea6 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
%time col = intake.open_esm_datastore(col_url)
col_url = "/pool/data/Catalogs/dkrz_cmip6_disk.json"
sourceIds = ['CAMS-CSM1-0', 'CMCC-CM2-SR5', 'CMCC-ESM2', 'ACCESS-ESM1-5', 'ACCESS-CM2', 'MPI-ESM1-2-LR']
cat = col.search(member_id='r1i1p1f1',
experiment_id='historical',
activity_id='CMIP',
table_id='Omon',
variable_id='thetao',
grid_label='gn',
source_id=sourceIds)
with dask.config.set(**{'array.slicing.split_large_chunks': True}):
data_dict = cat.to_dataset_dict(cdf_kwargs={"chunks": {"time": -1},
"use_cftime": True}, preprocess=combined_preprocessing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment