Restarts
ESM1.6 restart files contain copies of complete model states, allowing for experiments to be stopped and restarted at a later time. This page outlines their structure and details basic procedures for manipulating them.
Structure of the ESM1.6 restart directory¶
An ESM1.6 restart directory contains separate restart files for each component. These are organised into the following directories:
atmosphere coupler ice ocean README
An example restart directory is available in /g/data/vk83/prerelease/configurations/inputs/access-esm1p6/modern/pre-industrial/restart/2025.11.2.
Atmosphere¶
The atmosphere restart directory contains the following files
restart_dump.astart um.res.yaml
restart_dump.astart is the main UM restart file, containing the atmospheric and land state in addition to static boundary information such as the land-sea mask, vegetation maps and orography.
um.res.yaml is a separate calendar file which holds the date and time associated with the restart. Information in this file is copied by Payu into the model namelist files at runtime.
Ocean¶
The ocean restart files are organised into separate groups of variables:
ocean_age.res.nc ocean_density.res.nc ... ocean_solo.res
These netCDF files contain snapshots of the model state while ocean_solo.res is a text file specifying the model date and time.
Ice¶
The ice restart directory contains the following files:
iced.2145-01-01-00000.nc ice.restart_file mice.nc
The iced.YYYY-MM-DD-00000.nc holds the model state and also carries the date and time in the global attributes. ice.restart_file is
a pointer file used by CICE when finding the correct restart file to read. mice.nc contains ice coupling data to be sent to the ocean model
at the beginning of the next run.
Coupler¶
The coupler restart directory contains data sent from each component at the termination of the previous run, allowing for the submodels to restart with the same boundary conditions at the beginning of the next run.
a2i.nc i2a.nc o2i.nc
Common restart manipulations¶
Perturbing an atmospheric restart file¶
ESM1.6 simulations occasionally crash due to numerical instabilities in the atmosphere component. A common workaround is to apply a small perturbation to the theta field in the last atmospheric restart file.
It's best practice to apply the perturbation in a reproducible way, and to record details of any perturbations that are added during your experiment. Doing so will allow you to rerun the same experiment in an identical way in the future, for example to enable additional output variables.
We recommend using the following steps to apply and record a perturbation:
Warning
Before applying a perturbation, we recommend first inspecting the error logs and trying to sweep and rerun to rule out other problems such as transient errors on Gadi.
-
In the experiment's archive directory, navigate to the latest
restartXYZrestart directory and make a backup of the atmospheric restart fileatmosphere/restart_dump.astart:Make sure to keep this file as a backup.cd restartXYZ/atmosphere mv restart_dump.astart restart_dump.astart_orig -
Load the
model-processingenvironment. This may clash with thepayuenvironment, and so it is best to unload thepayumodule or perform this step in a new Gadi session.module use /g/data/vk83/modules module load model-processing -
Apply a perturbation to the atmospheric restart file:
hereperturbIC -s <SEED> restart_dump.astart_orig -o restart_dump.astart<SEED>can be any integer, and it's used to set the random number generator seed for the perturbation. Specifying a seed value is important, as it allows for the exact same perturbation to be reapplied in the future. Make sure to keep track of whichever value you use.The resulting perturbed restart will be written to
restart_dump.astart. This file name is required for the model to be able to find the restart. -
Unload the model-processing environment and load the payu environment:
module unload model-processing module load payu -
Make a record of the perturbation in the experiment runlogs. First
cdinto the payu control directory for the experiment. If the work directory still exists, first runpayu sweep.Next run
payu setuppayu setupwill rewrite the manifest file using the data from the modified restart. To record the pertubation in the experiment history, next runfilling in the correct information forgit commit -a -m "restartXYZ atmospheric restart perturbed using command: perturbIC -s <SEED> restart_dump.astart_orig -o restart_dump.astart"<SEED>andrestartXYZ. When the experiment is uploaded to the experiments repository, it will include this record of the applied perturbation.If you run the
git logcommand, it should now include the above record.
You will finally need to run payu sweep to clear the work directory before setting off the next run.
Changing the date of restart files¶
It's commonly required to change the date for a restart file. For example when setting up a historical experiment, a restart might be taken from a pre-industrial simulation and the date changed to 1850. Another example is when combining ocean and atmosphere restarts from two different experiments into a single restart, where it is necessary to make sure the dates for the different components match.
The following instructions outline how to modify the date for each component. It's important to apply the updates to all components consistently, as inconsistencies in the model dates can cause crashes.
Info
Before starting any manipulation, copy the restart folders you want to modify to a new location of your choice.
Atmosphere:¶
Navigate to the restart/atmosphere directory:
Ocean:¶
In the restart/ocean directory, edit ocean_solo.res:
3 (Calendar: no_calendar=0, thirty_day_months=1, julian=2, gregorian=3, noleap=4)
1 1 1 0 0 0 Model start time: year, month, day, hour, minute, second
2145 1 1 0 0 0 Current model time: year, month, day, hour, minute, second
Replace the date in the 3rd line, taking care to preserve the column alignment. The entries should not be zero-padded.
Sea-ice:¶
In the restart/ice directory:
Rename the iced.YYYY-MM-DD-00000.nc with new date. The year, month, and day should be zero padded.
Edit the ice.restart pointer file to use the new file name:
Replace the year, nyr, month, and mday global attributes using nco (in most cases, only the year and nyr attributes will need to be changed. These should be given the same value.):
Replace the time global attribute to equal the total number of seconds between 1/1/1 and the new date using the proleptic Gregorian calendar. This can be calculated using the cftime python library. E.g. using 2105-03-01 as the new date:
Then add this to the restart file using nco:
Update the configuration¶
Update the payu configuration file, config.yaml, with the path to the new restart files:
restart: <path_to_new_restarts>
Changing the land cover¶
The land surface is characterised by land cover types- each grid cell comprises of multiple "tiles" of different land cover types, each occupying a percentage of the grid cell. There are many reasons one may want to change the land cover e.g. reduce ice coverage, change forest distributions or modifying farming patterns. The land cover has the stash code 216, named "FRACTIONS OF SURFACE TYPES". Unfortunately, to effectively change the land cover requires more than only changing this field, due to way the CABLE land model handles tiles.
CABLE models each tile on a grid cell completely independently- different tiles on a single grid cell have absolutely no direct influence on each other (but do indirectly due to their influence on the local climate). CABLE does not model all tiles on every single grid cell, only the tiles that have a fraction greater than zero are modeled. This means that the state variables e.g. soil moisture content, snow depth, carbon stocks on inactive tiles do not contain any meaningful data, and are typically set to 0.0.
To address this, use the adjust_restart_for_new_land_cover tool. Supply the restart file to adjust and the new land cover dataset in run_adjust_restart.sh, run the job, and update the payu configuration to use the generated restart. See the linked documentation for a detailed explanation of the tool.