data.pass

data.pass does the final processing and archiving of edited data to clean approved data. It is given a time range to be passed and updates the clean archive with data in that time range.

In basic functionality data.pass pipes the output of data.get for edited data into the clean archive, with data.archive.put. However, this is entirely hidden; it requires only the time range to pass as its input.

It requests a comment (optional) regarding this interval. This comment can contain any notes relevant to the interval being passed (system status, etc).

The records passed into the clean archive are defined by pass.conf.

Command Line Usage

data.pass [--comment] [--update] [station] start [end]

Arguments

start and end

The time specifiers for the data to be retrieved. Start is inclusive while end is exclusive, so all data contained within the half open interval [start,end) will be returned. If a single Year/week pair is specified, the end is assumed to be the start plus 7 days. Any convertible time format is accepted.

station

The station identifier code. For example 'brw'. Case insensitive.

--comment

Prompt for a comment on this interval.

--update

Immediately run data.aggregate.station, this will cause any clean aggregate jobs (like data.aggregate.updateavg to update hourly averages) to be run.

Example Usage

Default one week

data.pass sgp 2008W02

Exact time range

data.pass sgp 2008:10 2008:12