command=$0 \rm -f ~gops/scripts/out/makeggrs.status # remove status file #----- # Set the path. (setPATH/setMCPATH.scr by JPN) #----- export PATH=`setPATH.scr 2005` #----- # Set up MCPATH. #----- export MCPATH=`setMCPATH.scr 2005` #----- # Display script name as well as time and date at the beginning of the script. #----- echo echo "**********************************************************************" echo echo " ** $command began at ..." echo echo " ** `date -u +\"%T UT on %a %d %b %Y {%j}\"` **" echo sysdate=`date -u +%Y%j` # system date, in ccyyddd format syshour=`date -u +%H` # system hour (UT) defdate=-1 defhour=0 # Only reasonable hours, for now, are 00 and 12 (being the raob times). #----- # Determine input parameters. #----- if [ -z "$1" -o "$1" -lt 0 ] then ccyyddd=$sysdate else ccyyddd=$1 fi if [ -z "$2" ] then ihr=$defhour else ihr=$2 fi ihr2=$(fullnumber.scr $ihr 2 r) ; error=$? if [ -z "$3" ] then trc="y" else trc=$3 fi if [ -z "$4" ] then uh="n" else uh=$4 fi if [ -z "$5" ] then lat=43.0 else lat=$5 fi if [ -z "$6" ] then lon=91.0 else lon=$6 fi #----- # ADDE dataset position numbers are one greater than the nominal hour # in typical 24 hour AREA cylinders. 12z is in pos 13; 00z, in pos 01. #----- npos=$(( ihr + 1 )) #----- # Show parameters that have been keyed in or derived. #----- echo "($command)" echo "Input values for: ccyyddd, ihr, npos = $ccyyddd , $ihr , $npos" echo "Input values for: trc (transf), uh (upd pg) = $trc , $uh" echo "Input values for: lat, lon (W positive) = $lat , $lon"