Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Daily-temperature climatology with geocat-comp

Access CESM2 data from GDEX and compute climatology average

/glade/u/home/harshah/.conda/envs/osdf/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm
40.015 254.7295
/glade/derecho/scratch/harshah

Spin up a cluster

/glade/u/home/harshah/.conda/envs/osdf/lib/python3.11/site-packages/distributed/node.py:188: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 38601 instead
  warnings.warn(
Loading...
Loading...

Load CESM2 temperature data and apply geocat-comp’s climatology average

Loading...
<ArrowExtensionArray> [ 'osdf:///ncar-gdex/d010092/atm/daily/cesm2LE-historical-cmip6-FLNS.zarr', 'osdf:///ncar-gdex/d010092/atm/daily/cesm2LE-historical-cmip6-FLNSC.zarr', 'osdf:///ncar-gdex/d010092/atm/daily/cesm2LE-historical-cmip6-FLUT.zarr', 'osdf:///ncar-gdex/d010092/atm/daily/cesm2LE-historical-cmip6-FSNS.zarr', 'osdf:///ncar-gdex/d010092/atm/daily/cesm2LE-historical-cmip6-FSNSC.zarr'] Length: 5, dtype: large_string[pyarrow]
Loading...

--> The keys in the returned dictionary of datasets are constructed as follows:
	'component.experiment.frequency.forcing_variant'
Loading...
CPU times: user 554 ms, sys: 46.6 ms, total: 601 ms
Wall time: 3.55 s
CPU times: user 3 μs, sys: 0 ns, total: 3 μs
Wall time: 6.44 μs
dict_keys(['atm.historical.daily.cmip6', 'atm.ssp370.daily.cmip6'])
Loading...

To illustrate how the function works select small subset

  • Choose data between year0 and year1

  • Choose data from only one member

  • Choose data for Boulder

CPU times: user 66.7 ms, sys: 5.38 ms, total: 72.1 ms
Wall time: 85 ms
Loading...
CPU times: user 181 ms, sys: 12.5 ms, total: 194 ms
Wall time: 6.22 s
<Figure size 640x480 with 1 Axes>
CPU times: user 107 ms, sys: 6.7 ms, total: 114 ms
Wall time: 197 ms
Loading...
CPU times: user 125 ms, sys: 11.2 ms, total: 137 ms
Wall time: 3.6 s
<Figure size 640x480 with 1 Axes>