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