#! /bin/csh -f # # rem: grep weatherStation /var/carma/accLog/environment.log | grep Ta/Td/RH | grep h2o > ~/env.log # loc: scp cvs.ovro.caltech.edu:env.log . # set filename(s) set log=(env.log) # get the time in the funny format grep weatherStation $log |\ grep -v nan |\ grep Ta/Td/RH |\ awk '{print $6,$1,$2,$3}' > tab1 # record the first one (0 means first record) set time0=0 set time0="`head -1 tab1`" set time0="{2005} May 9 0:00:00" # convert the funny format to hours since the first one tabdate tab1 - "{%Y} %b %d %H:%M:%S" %s time0="$time0" | tabmath - - %1/3600 all > tab1a # get the Ta,Td,RH for DPS and WS grep weatherStation $log |\ grep -v nan |\ grep Ta/Td/RH |\ awk '{print $11,$12,$13,$14,$15,$16}' > tab2 # plot overview paste tab1a tab2 |\ tabplot - 1 2:7 color=2,3,4,5,6,7 \ ycoord=0 \ ymin=-15 ymax=65 \ xlab="Time(hours)" \ ylab=Celsius/RH \ headline="$time0" $*