Process
index
Process.py

Generate hourly, daily & monthly summaries of raw weather station data.
 
usage: python Process.py [options] data_dir
options are:
        --help          display this help
data_dir is the root directory of the weather data

 
Modules
       
DataStore
WeatherStation
getopt
os
sys

 
Classes
       
Acc
MonthAcc

 
class Acc
    'Accumulate' raw weather data to produce summaries.
 
Compute average wind speed, log daytime max & nighttime min
temperatures and maximum wind gust, find dominant wind direction
and compute total rainfall.
 
Daytime is assumed to be 0900-2100 and nighttime to be 2100-0900,
local time (1000-2200 and 2200-1000 during DST), regardless of the
"day end hour" setting.
 
  Methods defined here:
__init__(self, time_offset, last_rain)
add(self, raw)
Add a raw data reading.
get_daily(self)
get_hourly(self)
Get the hourly result of the data accumulation.
reset_daily(self)
reset_hourly(self)

 
class MonthAcc
    Derive monthly summary data from daily data.
 
  Methods defined here:
__init__(self, start)
add(self, daily)
get_monthly(self)

 
Functions
       
Process(params, raw_data, hourly_data, daily_data, monthly_data, verbose=1)
Generate summaries from raw weather station data.
 
Starts from the last hourly or daily summary (whichever is
earlier) and continues to end of the raw data.
 
The meteorological day end (typically 2100 or 0900 local time) is set
in the preferences file "weather.ini". The default value is 2100
(2200 during DST), following the historical convention for weather
station readings.
 
Atmospheric pressure is converted from absolute to relative, using
the weather station's offset as recorded by LogData.py. The
pressure trend (change over three hours) is also computed.
main(argv=None)

 
Data
        Local = <TimeZone.LocalTimezone object at 0x4073c070>
utc = <TimeZone.UTC object at 0x4072ffb0>