Skip to content

About

Scripts to produce scalar output including sea-level contributions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ISMIP7 Scalar Processing

Turns gridded ISMIP7 ice sheet model output into the scalar time series the community compares: three sea-level contributions, four state scalars and six integrated mass fluxes, for the whole ice sheet and optionally for each IMBIE3 basin. Covers Antarctica (AIS) and Greenland (GrIS).

Documentation: https://ismip.github.io/ismip7-scalar-processing/

Install and run

conda create -n ismip7-scalars -c conda-forge ismip7-scalars
conda activate ismip7-scalars
ismip7-scalars --region AIS \
    --group VUW --model PISM1 --modelid m001 \
    --esm CESM2-WACCM --forcingid f001 \
    --experiment ssp585 --configid C007 --hist-configid C001 \
    --modelpath Models/AIS --datapath Data/AIS

Three commands are installed:

  • ismip7-scalars processes one experiment
  • ismip7-scalars-ensemble processes every experiment in a submission tree
  • ismip7-scalars-set-params writes the density file each model needs

New releases come often, with bug fixes and new features. Update before you process new output:

conda update -n ismip7-scalars -c conda-forge ismip7-scalars

What you need

Your model output laid out as in an ISMIP7 submission, the area factors and masks for your grid resolution, and a params.nc holding the densities your model was run with. For the VUW group's PISM1 model:

Models/AIS/                <-- --modelpath: the ice sheet directory, not your model's
└── VUW/
    └── PISM1/
        ├── params.nc
        └── CORE/
            ├── C001/      lithk_AIS_VUW_PISM1_m001_CESM2-WACCM_f001_historical_C001_1850-2014.nc ...
            └── C007/      lithk_AIS_VUW_PISM1_m001_CESM2-WACCM_f001_ssp585_C007_2015-2300.nc ...
Data/AIS/                  <-- --datapath, from the ISMIP Globus server under Output-Processing

Output goes to Output/nc, in a tree mirroring the model tree, and to Output/csv, flat. Each run produces one sl_<run-fields>_<mask>.csv containing a row for each enabled SLC method, GIC variant, and selected mask; NetCDF remains one file per scalar. Use --csv/--no-csv and --netcdf/--no-netcdf to override the default formats. The getting started page walks through this.

Where to read more

Getting started install, lay out the files, run one experiment
File conventions filenames, directory layout, time encoding, params.nc
Running the processing every option
The output files what each file and CSV column holds
The sea-level methods VAF, G2020 and A2020
Processing an ensemble the batch driver
Developer guide source install, tests, MATLAB parity, releases

MATLAB

matlab/scalars.m computes the same scalars from the same inputs into the same layout, and is kept numerically identical to the Python implementation. It is run from a checkout rather than installed; see the MATLAB page.

Contributing

Problems and questions go in the issue tracker. Pull requests are welcome; the developer guide covers the source install, the tests and the release process. If a change touches a computed number, change the MATLAB implementation with it and say so in the pull request.

Distributed under the MIT License; see LICENSE.

About

Scripts to produce scalar output including sea-level contributions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages