ttopgreplace.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
 (HTM) git clone git://src.adamsgaard.dk/pism
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       ttopgreplace.sh (584B)
       ---
            1 #!/bin/bash
            2 
            3 # Copyright (C) 2013  Ed Bueler
            4 
            5 SCRIPTNAME="#(topgreplace.sh)"
            6 
            7 NAME=$1
            8 DO=$PISM_DO
            9 
           10 # replace topg with topgsmooth (does nothing if $NAME is absent)
           11 echo
           12 echo "$SCRIPTNAME  replacing topg in $NAME with topgsmooth"
           13 cmd="ncatted -O -a standard_name,topg,d,, $NAME"
           14 $DO $cmd
           15 cmd="ncrename -O -v topg,topgoriginal $NAME"
           16 $DO $cmd
           17 cmd="ncrename -O -v topgsmooth,topg $NAME"
           18 $DO $cmd
           19 cmd="ncatted -O -a standard_name,topg,o,c,bedrock_altitude $NAME"
           20 $DO $cmd
           21 cmd="ncatted -O -a long_name,topg,d,, $NAME"
           22 $DO $cmd
           23 cmd="ncatted -O -a pism_intent,topg,d,, $NAME"
           24 $DO $cmd
           25 echo
           26