#!/bin/csh # # Script to get logging to work. # # # # # # results/91408/12z/in9140807123112g.dat # setenv UPA /snowball2/apaget/hurricane2/gemfiles set filling = `cat /snowball2/s0/apaget/isabel-gfdl/2003091506/latin.txt` set filling2 = `cat /snowball2/s0/apaget/isabel-gfdl/2003091506/lonin.txt` set total_count = `cat /snowball2/s0/apaget/isabel-gfdl/2003091506/latin.txt | wc -l` #set runtime = 0 #set titles = title #set soilmoisture = 100 #set cloudcover = 100 cd /snowball2/s0/apaget/isabel-gfdl/2003091506/ set pwd = `pwd` set count = 1 # foreach fil($filling) while($count <= $total_count) #while($count <= 5) echo $count >> outputfile.txt echo $filling[$count] $filling2[$count] | grads -clb "run getdata.gs" | grep DATA | cut -c7- >> outputfile.txt echo " " >> outputfile.txt @ count = $count + 1 #echo "30 -80" | grads -clb "run getdata.gs" | grep DATA | cut -c7- > outputfile.txt #echo $count #echo " " end #