<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/bin/csh -f

set date = `cat 201???_rame_met.dat | awk '/\:/{print $1}' | awk 'BEGIN {FS="/"}{printf("%02d/%02d/%02d\n", $1,$2,$3)}'`
set time = `cat 201???_rame_met.dat | awk '/\:/{print $2}' | awk 'BEGIN {FS=":"}{printf("%02d:%02d\n", $1,$2)}'`
set temp = `cat 201???_rame_met.dat | awk '/\:/{print $3}'`
set winddir = `cat 201???_rame_met.dat | awk '/\:/{print ","$9","}' | \
    sed 's/\,N\,/360/g' | sed 's/\,NNE\,/23/g' | \
    sed 's/\,NE\,/45/g' | sed 's/\,ENE\,/68/g' | \
    sed 's/\,E\,/90/g' | sed 's/\,ESE\,/113/g' | \
    sed 's/\,SE\,/135/g' | sed 's/\,SSE\,/158/g' | \
    sed 's/\,S\,/180/g' | sed 's/\,SSW\,/203/g' | \
    sed 's/\,SW\,/225/g' | sed 's/\,WSW\,/248/g' | \
    sed 's/\,W\,/270/g' | sed 's/\,WNW\,/293/g' | \
    sed 's/\,NW\,/315/g' | sed 's/\,NNW\,/338/g'`
set windspd = `cat 201???_rame_met.dat | awk '/\:/{printf("%5.2f\n", $8/1.94)}'`
set windgst = `cat 201???_rame_met.dat | awk '/\:/{printf("%5.2f\n", $11/1.94)}'`

set counter = 1
foreach dd($date)
   echo $dd $time[$counter] $temp[$counter] $winddir[$counter] $windspd[$counter] $windgst[$counter]
   #echo $time[$counter]
   @ counter ++
end

exit(0)

</pre></body></html>