Python scripts to generate ISMIP7 grid description files used for CDO regridding.
(The grids did not change since ISMIP6)
See also old matlab version of scripts
Needs a python3 environment with
numpy, netCDF4
The scripts can generate 3 different types of files for Greenland and Antarctica
grid_ISMIP7_g?_IS_res.nc
xy_ISMIP7_g?_IS_res.nc
af2_ISMIP7_g?_IS_res.nc
All files are produced for the diagnostic grid g1 (ice thickness, SMB, ..)
The scripts can also generate files for a staggered grid g0, where e.g. CISM defines horizontal velocities.
ISMIP7_AIS_multigrid_generator_nc.py
ISMIP7_GrIS_multigrid_generator_nc.py
using
polar_stereo.py
wnc.py
In new versions of CDO, the grid description can be provided per text files that specify the projection information. These files are much smaller in size and can be produced with the following scripts.
make_GDF_AIS.py
make_GDF_GrIS.py
Conservative remapping (here from 16 km to 8 km grid)
remapycon,gdf_.. specifies the output grid
-setgrid,gdf_.. specifies the input grid
cdo -v remapycon,gdf_ISMIP7_AIS_08000m.txt -setgrid,gdf_ISMIP7_AIS_16000m.txt lithk_AIS_16000m.nc lithk_AIS_08000m.nc
See examples/ for more.