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