source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/examples/test_rmp_esmf/script_interp_with_esmf_curv_to_curv_grids.sh @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 4 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

  • Property svn:executable set to *
File size: 822 bytes
Line 
1#!/bin/ksh
2#
3HOMEDIR=`pwd`
4#
5# Name of the grids (4 characters)
6srcgrid=torc
7tgtgrid=lmdz
8# Remapping (done with ESMF in an NCL program see below)
9interp_method=bilinear
10#interp_method=patch
11#interp_method=neareststod
12#interp_method=conserve
13#
14RUNDIR=$HOMEDIR/wkdir_esmf_${srcgrid}_${tgtgrid}_${interp_method}
15DATAGRIDS=$HOMEDIR/data_esmf
16[ -d $RUNDIR ] || mkdir $RUNDIR
17cd $RUNDIR
18#
19# Copy grids and masks files
20ln -sf $DATAGRIDS/grids_all.nc $RUNDIR/grids.nc
21ln -sf $DATAGRIDS/masks_all.nc $RUNDIR/masks.nc
22#
23# Remapping using ESMF with NCL
24echo "Running interp_esmf_curv_to_curv_one_step.ncl"
25cp $HOMEDIR/interp_esmf_curv_to_curv_one_step.ncl $RUNDIR/interp_esmf_curv_to_curv_one_step.ncl
26ncl 'interp_method="'${interp_method}'"' 'srcgrid="'${srcgrid}'"' 'tgtgrid="'${tgtgrid}'"' interp_esmf_curv_to_curv_one_step.ncl
Note: See TracBrowser for help on using the repository browser.