Recent Changes - Search:

UM User Group

PmWiki

pmwiki.org

edit SideBar

Change Start Date

#!/bin/sh
# I got this script from emily black 
# It modifies the atmospheric reconfiguration namelist to allow the year, 
# month _and_ day of the start dump to be overwritten.
# for more details see:
# http://www.met.rdg.ac.uk/~dan/um/bin/view.cgi/UM/BasicEnsembleExpt



if [ $# != 4 ]
then
    echo " useage changeStartDate job_name year month day"
    echo " eg changeStartDate xalya 1996 3 19"
    exit
fi

cd $HOME/umui_jobs/$1


cp RECONA RECONA.bak
cat << ENDCAT | ed -s RECONA > /dev/null
1,\$s/FIXHD(12)=405,/FIXHD(12)=405,FIXHD(21)=$2,FIXHD(22)=$3,FIXHD(23)=$4,FIXHD(28)=$2,FIXHD(29)=$3,FIXHD(30)=$4,/
w RECONA
q
ENDCAT
Add Comment 
Sign as Author 
Enter code 486

Edit - History - Print - Recent Changes - Search
Page last modified on December 07, 2005, at 05:03 PM