Description Usage Arguments Details Value Author(s) See Also Examples
This function returns a quality-checked timeseries from Water Data Online.
1 2 3 4 5 6 7 8 | get_monthly(
parameter_type,
station_number,
start_date,
end_date,
tz,
return_fields
)
|
parameter_type |
The water data parameter type (e.g. Water Course
Discharge). See |
station_number |
The AWRC station number. |
start_date |
Start date formatted as a string or date class (YYYY-MM-DD). |
end_date |
End date formatted as a string or date class (YYYY-MM-DD). |
tz |
Optional: the desired time zone for the output timeseries. Input
must be an Olson Name (see |
return_fields |
Optional: columns to be returned from Water Data Online. By default Timestamp, Value and Quality Code are returned. |
For the parameters (and their units) that can be requested, see parameters. More information can be found in the Water Data Online SOS manual (URL in See Also below).
Common valid return fields are:
Timestamp
Value
Quality Code
Interpolation Type
Other valid return fields (depending on the parameter requested) may be:
Absolute Value
AV Interpolation
AV Quality Code
Runoff Value
RV Interpolation
RV Quality Code
Aggregation
Accuracy
If the request is not valid it will fail.
A tibble with the requested return fields, which by default are
Timestamp
, Value
and Quality Code
. Zero row tibbles are returned if
no data is available for the requested dates. The aggregation of data is
generally the mean for most variables, except for rainfall and evaporation
which is the sum over the chosen period.
Alexander Buzacott
1 2 3 4 5 6 7 8 9 10 | # Monthly average dry air temperature at Corin Dam
## Not run:
get_monthly(
parameter_type = "Dry Air Temperature",
station_number = "570947",
start_date = "2016-01-01",
end_date = "2016-06-01"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.