Attachment #5 -Generate Graphics (metaparam.csh) #! /bin/csh # # This script will rebuild metafiles for # N-TRANS if problems occur # # Check to see if user is on (put hostname of your HP here). If not, kick # them out of program. # # set HOSTCHECK = "`hostname`" if ( "$HOSTCHECK" != "huey") then echo "You can only run this program from (put hostname of HP here)." sleep 10 exit endif # # Make sure program runs in correct directory # set HOME = $NAWIPS/exe/scripts/localapps cd ${HOME} # # ask what model user wants to rebuild # echo -n " What model cycle do you want to rebuild (00 or 12)? " set cycle=$< echo $cycle > cycle @ msocycle = $cycle + 3 if ($msocycle == 3) then set msocycle = '03' endif echo $msocycle > msocycle # echo " " echo " Which of the following models do you want to rebuild?" echo " (Answer y or n)" echo " " echo -n " ETA? " set etaresponse=$< echo $etaresponse > etares echo "" echo -n " AVN? " set avnresponse=$< echo $avnresponse > avnres echo "" echo -n " MESOETA? " set msoresponse=$< echo $msoresponse > msores echo "" echo -n " MRF? " set mrfresponse=$< echo $mrfresponse > mrfres echo "" echo -n " NGM? " set ngmresponse=$< echo $ngmresponse > ngmres # ldmreset