This component sends a report of all new processing since the last time it was run. This report is delivered to a set of email addresses defined by the processing profile.

Usage

da.email.send [switches…​] [station…​] [times]

Switches

--profile=STRING

This is the profile name to execute. Multiple profiles can be defined to allow for different email types from a single station. Consult the station configuration for available profiles.

Default: aerosol

--quiet[=BOOLEAN]

If set then no progress output is displayed and any confirmation prompts are bypassed.

Default: Disabled

--wait=NUMBER

This is the maximum time to wait for another process to complete, in seconds. If there are two concurrent processes for the same station and profile, the new one will wait at most this many seconds before giving up without sending an email new data. If this is set to undefined, it will wait forever for the other process to complete.

Default: One hour

This option only accepts numbers greater than or equal to 0. Undefined values are permitted, to indicate that the option is set but not to a specific value.

Arguments

station

This argument is used to specify the station used to look up variables that do not include a station as part of an archive read specification. The station is the three letter GAW station code of the location, such as BND. The argument accepts multiple stations specified as regular expressions and separated by : or ; or ,. For example BND,MLO and (BND|MLO) are two ways of selecting both the BND and MLO stations.

The special value allstations may also be specified to select all stations.

times

This argument may be split into multiple actual program arguments. This full list of time arguments defines a time bounds list that sets the range of data queried. The final resulting data are clipped to the given time bounds but any values that intersect them are returned.

Examples

Email the latest data report

This will generate and email out the latest processing report for the "aerosol" profile.

da.email.send 2015-05-01 2015-05-03