source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/examples/test_rmp_esmf/script_interp_with_esmf_curv_to_unstructured_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: 1.0 KB
Line 
1#!/bin/ksh
2#
3HOMEDIR=`pwd`
4#
5# Name of the grids (4 characters)
6srcgrid=lmdz
7tgtgrid=bt42
8# Remapping (done with ESMF in an NCL program see below)
9interp_method=bilinear
10#interp_method=patch
11#interp_method=neareststod
12# DOES NOT WORK YET : interp_method=conserve
13#
14RUNDIR=$HOMEDIR/wkdir_esmf_${srcgrid}_${tgtgrid}_${interp_method}
15DATAGRIDS=$HOMEDIR/data_esmf
16REGRID_ESMF_FILE=$HOMEDIR/esmf_regridding_unstructured
17[ -d $RUNDIR ] || mkdir $RUNDIR
18cd $RUNDIR
19#
20# Copy grids and masks files
21ln -sf $DATAGRIDS/grids_all.nc $RUNDIR/grids.nc
22ln -sf $DATAGRIDS/masks_all.nc $RUNDIR/masks.nc
23#
24# Remapping using local ESMF ESMF_regridding.ncl with NCL
25echo "Running interp_esmf_curv_to_unstructured_one_step.ncl"
26cp $HOMEDIR/interp_esmf_curv_to_unstructured_one_step.ncl $RUNDIR/interp_esmf_curv_to_unstructured_one_step.ncl
27cp $REGRID_ESMF_FILE/ESMF_regridding.ncl $RUNDIR/ESMF_regridding.ncl
28ncl 'interp_method="'${interp_method}'"' 'srcgrid="'${srcgrid}'"' 'tgtgrid="'${tgtgrid}'"' interp_esmf_curv_to_unstructured_one_step.ncl
Note: See TracBrowser for help on using the repository browser.