#! /bin/csh # # --------------------------------------------- # Writes verify_model.ctl and runs verify_model # --------------------------------------------- # # Define path where this script runs # set base_path = "/Users/james/Documents/NOAA/Development/atcf/" cd ${base_path} # # if ($1 == "") then goto run_program else echo "${1}" > verify_model.ctl endif if ($2 == "") then goto run_program else echo "${2}" >> verify_model.ctl endif if ($3 == "") then goto run_program else echo "${3}" >> verify_model.ctl endif if ($4 == "") then goto run_program else echo "${4}" >> verify_model.ctl endif if ($5 == "") then goto run_program else echo "${5}" >> verify_model.ctl endif if ($6 == "") then goto run_program else echo "${6}" >> verify_model.ctl endif if ($7 == "") then goto run_program else echo "${7}" >> verify_model.ctl endif if ($8 == "") then goto run_program else echo "${8}" >> verify_model.ctl endif if ($9 == "") then goto run_program else echo "${9}" >> verify_model.ctl endif if ($10 == "") then goto run_program else echo "${10}" >> verify_model.ctl endif if ($11 == "") then goto run_program else echo "${11}" >> verify_model.ctl endif if ($12 == "") then goto run_program else echo "${12}" >> verify_model.ctl endif if ($13 == "") then goto run_program else echo "${13}" >> verify_model.ctl endif if ($14 == "") then goto run_program else echo "${14}" >> verify_model.ctl endif if ($15 == "") then goto run_program else echo "${15}" >> verify_model.ctl endif if ($16 == "") then goto run_program else echo "${16}" >> verify_model.ctl endif # run_program: ./verify_model # echo " " set append = $11 set stmid = `echo $1 | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` set model = `echo $3 | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` set model2 = `echo $4 | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` set modch4 = `echo $model | cut -c4` if ($modch4 == "") then set model = `echo -n $model; echo -` endif # exit: set fname = `echo -n verifym_kgrf; echo -n _; echo -n $stmid; echo -n _; echo -n $model; echo -n _; echo -n $append; echo .txt` set fname2 = `echo -n $stmid; echo -n _; echo -n $model; echo .log` set fname3 = `echo -n $stmid; echo -n _; echo -n $model; echo -n _; echo -n $append; echo .txt` echo " " cd ${base_path}/model_logs mv verifym_kgrf.log $fname mv $fname2 $fname3 cd ${base_path} echo "verify_modelrx.cmd process complete."