Core Utilities & Constants¶
This module documents the shared infrastructure, CLI argument parsers, physical constants, calendar adjustments, and experiment wrappers.
Detailed Module Reference¶
cmip7_HI¶
esm1p6_ancil.cmip7_HI
¶
fix_esm15_hi_ancil_date(ifile, ofile)
¶
Correct the dates of the ESM1.5 historical ancillaries so that they can be read by Iris. These have field end dates appropriate to the 360 day calendar rather than Gregorian.
cmip7_PI¶
esm1p6_ancil.cmip7_PI
¶
fix_esm15_pi_ancil_date(ifile, ofile)
¶
Correct the dates of the ESM1.5 preindustrial ancillaries so that they can be read by Iris. These have field end dates appropriate to the 360 day calendar rather than Gregorian. Also reset the year number to CMIP7_PI_YEAR.
cmip7_SM¶
esm1p6_ancil.cmip7_SM
¶
cmip7_ancil_argparse¶
esm1p6_ancil.cmip7_ancil_argparse
¶
cmip7_ancil_common¶
esm1p6_ancil.cmip7_ancil_common
¶
extend_years(cube)
¶
Extend a cube representing a monthly time series by duplicating and adjusting the first and last years. Based on Crown copyright code from ozone_cmip6_ancillary_for_suite.py by Steven Hardiman of the UK Met Office.
save_ancil(cubes, save_dirpath, save_filename, gregorian=True, replace_bounds=False)
¶
Handle both a list and a single cube
tile_constant_years(cube, baseline_year, target_end_year)
¶
Extend a monthly time series cube from baseline_year to target_end_year by repeating the 12 monthly slices of baseline_year for subsequent years. Shifts time points and bounds using cftime year replacement to avoid leap-year calendar drift.