View Code? Open in Web Editor
NEW
ESMLab Regridding Utilities. ⚠️⚠️ ESMLab-regrid functionality has been moved into <https://github.com/NCAR/geocat-comp>. ⚠️⚠️
Home Page: https://esmlab-regrid.readthedocs.io
License: Apache License 2.0
Python 71.56%
Shell 5.49%
Makefile 8.17%
Roff 14.78%
esmlab-regrid's Issues
We have support for a regridding workflow, now we need the ability to generate grids files/objects.
Currently the workflow is based on SCRIP, but it doesn't have to be.
I recently wanted to generate weights to map ETOPO1 (1-minute data) to 0.1° POP. The esmlab.regrid function failed.
I resorted to running ESMF_RegridWeightGen
in MPI on 12 Cheyenne nodes.
#! /bin/bash
# PBS -N ESMF_RegridWeightGen
# PBS -q regular
# PBS -A NCGD0011
# PBS -l select=12:ncpus=36:mpiprocs=4:mem=109GB
# PBS -l walltime=06:00:00
# PBS -o logs/
# PBS -e logs/
# PBS -j oe
module purge
module load ncarenv/1.2
module load intel/17.0.1
module load netcdf/4.6.1
module load mpt/2.19
module load esmf_libs/7.1.0r
module load esmf-7.1.0r-ncdfio-mpi-O
SRC=/glade/work/mclong/esmlab-regrid/etopo1.nc
DST=/glade/work/mclong/esmlab-regrid/POP_tx0.1v3.nc
WEIGHT_FILE=/glade/work/mclong/esmlab-regrid/etopo1_to_POP_tx0.1v3_conservative.nc
METHOD=conserve
# Remove previous log files
rm -f PET* .RegridWeightGen.Log
mpirun -np 48 ESMF_RegridWeightGen --netcdf4 --ignore_unmapped -s ${SRC} -d ${DST} -m ${METHOD} -w ${WEIGHT_FILE}