Note
This page is rendered from the Jupyter notebook notebooks/Tutorial1_CMORisation_ENSO_Recipes.ipynb
in the ACCESS-MOPPy repository. The outputs below were stored the last time
the notebook was run; cells are not re-executed when the documentation is
built. Open the notebook on GitHub to run it yourself.
CMORising ACCESS-ESM1.6 Spin-Up for ACCESS-ENSO-Recipes#
The ACCESS CMIP7 consortium is actively developing the ACCESS-ESM1.6 model for submission to the CMIP7 Fasttrack initiative. As part of this effort, a spin-up run is being conducted on the NCI Gadi supercomputer, with output data progressively becoming available. However, this data cannot yet be easily evaluated using established evaluation frameworks such as ESMValTool or ILAMB.
This notebook demonstrates how to process the variables required by the ACCESS-ENSO-Recipe, developed by ACCESS-NRI and leveraging ESMValTool, to enable robust evaluation of ACCESS-ESM1.6 spin-up runs. This workflow provides a pathway for the scientific assessment and validation of the new model output.
Variables Required for ACCESS-NRI ENSO Recipes#
To run the ACCESS-NRI ENSO Recipes on the current ACCESS-ESM1.6 spin-up (CMIP7 FastTrack), the following variables are needed:
pr: Precipitation
tos: Sea surface temperature (can be interchanged with
ts)tauu: Zonal wind stress
ts: Surface air temperature (can be interchanged with
tos)zos: Sea surface height
nhf: Net heat flux, calculated as
nhf = (-hfds - hfss + rlds - rlus + rsds - rsus)
Notes:
hfdsis missing.The mapping for
rlusandrsusis currently unknown.tsandtoscan be used interchangeably.
This list is based on the requirements for the ENSO diagnostics and workflow as described in the ACCESS-NRI ENSO Recipes documentation.
To run the CMORIsation we advice using an X-Large or XX-Large session on ARE.
[1]:
from access_moppy import ACCESS_ESM_CMORiser
Loaded Configuration:
Creator Name: Romain Beucher
Organisation: ACCESS-NRI
Creator Email: romain.beucher@anu.edu.au
Creator URL: https://orcid.org/0000-0003-3891-5444
[2]:
import dask.distributed as dask
client = dask.Client(threads_per_worker=1)
client
/g/data/tm70/rb5533/miniforge3/envs/esmvaltool_dev/lib/python3.11/site-packages/distributed/node.py:182: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 45257 instead
warnings.warn(
[2]:
Client
Client-a32aab1d-6cfd-11f0-bca1-000003d0fe80
| Connection method: Cluster object | Cluster type: distributed.LocalCluster |
| Dashboard: /proxy/45257/status |
Cluster Info
LocalCluster
7f398e99
| Dashboard: /proxy/45257/status | Workers: 14 |
| Total threads: 14 | Total memory: 63.00 GiB |
| Status: running | Using processes: True |
Scheduler Info
Scheduler
Scheduler-397a062a-bc9c-4eb2-a8ac-42fa705e7634
| Comm: tcp://127.0.0.1:36633 | Workers: 14 |
| Dashboard: /proxy/45257/status | Total threads: 14 |
| Started: Just now | Total memory: 63.00 GiB |
Workers
Worker: 0
| Comm: tcp://127.0.0.1:36909 | Total threads: 1 |
| Dashboard: /proxy/43021/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:38643 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-_oa4zzsn | |
Worker: 1
| Comm: tcp://127.0.0.1:34109 | Total threads: 1 |
| Dashboard: /proxy/36483/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:36319 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-0zm590p6 | |
Worker: 2
| Comm: tcp://127.0.0.1:37787 | Total threads: 1 |
| Dashboard: /proxy/40299/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:37763 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-o6ywmczi | |
Worker: 3
| Comm: tcp://127.0.0.1:35515 | Total threads: 1 |
| Dashboard: /proxy/42693/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:41141 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-qmo87h2o | |
Worker: 4
| Comm: tcp://127.0.0.1:36215 | Total threads: 1 |
| Dashboard: /proxy/38419/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:46585 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-f96nnz59 | |
Worker: 5
| Comm: tcp://127.0.0.1:39165 | Total threads: 1 |
| Dashboard: /proxy/35129/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:45735 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-l5blt95g | |
Worker: 6
| Comm: tcp://127.0.0.1:43513 | Total threads: 1 |
| Dashboard: /proxy/38787/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:43027 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-4_1t5nss | |
Worker: 7
| Comm: tcp://127.0.0.1:40489 | Total threads: 1 |
| Dashboard: /proxy/35531/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:44613 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-mcxr1c3f | |
Worker: 8
| Comm: tcp://127.0.0.1:46247 | Total threads: 1 |
| Dashboard: /proxy/43071/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:38099 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-tga4l1n6 | |
Worker: 9
| Comm: tcp://127.0.0.1:35005 | Total threads: 1 |
| Dashboard: /proxy/46263/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:38673 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-f6viml77 | |
Worker: 10
| Comm: tcp://127.0.0.1:37841 | Total threads: 1 |
| Dashboard: /proxy/40075/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:46231 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-kj75fckr | |
Worker: 11
| Comm: tcp://127.0.0.1:34333 | Total threads: 1 |
| Dashboard: /proxy/45315/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:33755 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-5yanopew | |
Worker: 12
| Comm: tcp://127.0.0.1:40307 | Total threads: 1 |
| Dashboard: /proxy/33595/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:40001 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-n0trgjuo | |
Worker: 13
| Comm: tcp://127.0.0.1:36837 | Total threads: 1 |
| Dashboard: /proxy/42207/status | Memory: 4.50 GiB |
| Nanny: tcp://127.0.0.1:34599 | |
| Local directory: /jobfs/146193196.gadi-pbs/dask-scratch-space/worker-rt_sxrvz | |
We are currently using the June Spin Up dataset located at:
/g/data/p73/archive/CMIP7/ACCESS-ESM1-6/spinup/JuneSpinUp-JuneSpinUp-bfaa9c5b/
This folder contains the output files from the ACCESS-ESM1.6 spin-up experiment, which are used throughout this notebook for CMORisation and evaluation.
[ ]:
ROOT_FOLDER = (
"/g/data/p73/archive/CMIP7/ACCESS-ESM1-6/spinup/JuneSpinUp-JuneSpinUp-bfaa9c5b/"
)
[ ]:
OUTPUT_FOLDER = "/scratch/tm70/rb5533"
[8]:
import glob
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
[10]:
len(FILES)
[10]:
5805
[11]:
parent_experiment_config = {
"parent_experiment_id": "piControl",
"parent_activity_id": "CMIP",
"parent_source_id": "ACCESS-ESM1-5",
"parent_variant_label": "r1i1p1f1",
"parent_time_units": "days since 0001-01-01 00:00:00",
"parent_mip_era": "CMIP6",
"branch_time_in_child": 0.0,
"branch_time_in_parent": 54786.0,
"branch_method": "standard",
}
Amon.pr#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.pr",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[17]:
cmoriser.run()
[ ]:
cmoriser.write()
Omon.tos#
[ ]:
FILES = glob.glob(
ROOT_FOLDER + "output[0-4][0-9][0-9]/ocean/ocean-2d-surface_temp-1monthly-mean*.nc"
)
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Omon.tos",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.tauu#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.tauu",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.ts#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.ts",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Omon.zos#
[ ]:
FILES = glob.glob(
ROOT_FOLDER + "output[0-4][0-9][0-9]/ocean/ocean-2d-sea_level-1monthly-mean*.nc"
)
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Omon.zos",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.hfss#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.hfss",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.rlds#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.rlds",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.rlus#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.rlus",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.rsds#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.rsds",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()
Amon.rsus#
[ ]:
FILES = glob.glob(ROOT_FOLDER + "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc")
len(FILES)
[ ]:
cmoriser = ACCESS_ESM_CMORiser(
input_data=FILES,
compound_name="Amon.rsus",
experiment_id="piControl",
source_id="ACCESS-ESM1-5",
variant_label="r1i1p1f1",
grid_label="gn",
activity_id="CMIP",
parent_info=parent_experiment_config, # <-- This is optional, can be skipped if not needed
)
[ ]:
cmoriser.run()
[ ]:
cmoriser.write()