Regridding with ESMF and the stand alone utility

Revision as of 07:53, 2 February 2018 by Bmauer (talk | contribs)

I have created a simple utility that can regrid from Lat-Lon to Cubed-Sphere and vise versa using the ESMF integrated regridding. The utility supports both bilinear, conservative, and 2nd order conservative regridding. It should be able to read any Lat-Lon or Cubed-Sphere file produced by GEOS-5 and regrid to another Lat-Lon or Cubed-Sphere grid and requires no tile files to do the conservative regridding for example and should scale well to handle very large grids.

Because this uses some new develops that are not in the CVS repository for the time being I will keep a git repository with the executable you can run or clone your self. Building it is straightforward.

My executable will be located here:

/discover/swdev/bmauer/packages/Regridding/stable/GEOSagcm/build_dir/bin/Regrid_Util.x

To build it yourself on discover, make a directory for the source, so there, then:

module load other/git
git clone /discover/swdev/bmauer/packages/Regridding/stable/GEOSagcm

A GEOSagcm directory will appear in the location you did the clone

cd GEOSagcm
source src/g5_modules
mkdir build_dir
cmake ../src -DBASEDIR=$BASEDIR/Linux -DCMAKE_BUILD_TYPE=Release
make -j3 Regrid_Util.x

now in the build_dir under GMAO_Shared/MAPL_Base you will have a Regrid_Util.x you can run, copy, etc ...

To run: This program does require at least 6 cores, so you will need to get an interactive job or run via a batch job.