PSM for coral Sr/Ca#

In this tutorial, we introduce the PSM for coral Sr/Ca in cfr.

[1]:
%load_ext autoreload
%autoreload 2

import cfr
print(cfr.__version__)

Data preparation#

Proxy#

[2]:
pdb = cfr.ProxyDatabase().fetch('PAGES2kv2')
[3]:
pobj = pdb['Ocn_061']
fig, ax = pobj.plot()
../_images/notebooks_psm-coral-SrCa_6_0.png

Model#

[4]:
# note here the nc file has been interpolated to the atmos grid

%%time
dirpath = './data/icesm_last_millennium_historical'
model_tos = cfr.ClimateField().load_nc(os.path.join(dirpath, 'tos_sfc_Omon_iCESM_past1000historical_085001-200512_interp.nc'))
CPU times: user 980 ms, sys: 7.35 ms, total: 987 ms
Wall time: 1.05 s

Get climate data for a specific ProxyRecord#

[5]:
%%time

pobj.del_clim()
pobj.get_clim(model_tos, tag='model')
CPU times: user 208 ms, sys: 3.1 s, total: 3.31 s
Wall time: 1min 24s

Create a PSM object#

[6]:
mdl = cfr.psm.Coral_SrCa(pobj)
[7]:
%%time
pp = mdl.forward()
CPU times: user 498 µs, sys: 537 µs, total: 1.03 ms
Wall time: 1.35 ms
[8]:
fig, ax = pp.plot()
../_images/notebooks_psm-coral-SrCa_14_0.png
[ ]: