#!/bin/csh -x


foreach month (jan feb mar apr may jun jul aug sep oct nov dec)

set var = runoff
set infile = ~mauger/met_data/caor_16d/monthly_summaries/"$var"_monthly_tot_"$month".asc 
set colfile = tmp
set outfile = "$month"_minmax

grid2col $infile $colfile

GMT minmax $colfile >! $outfile


end

foreach month (jan feb mar apr may jun jul aug sep oct nov dec)
more "$month"_minmax
end
