get_dpird_availability {weatherOz} | R Documentation |
Get the Availability for DPIRD Weather Stations
Description
Fetch the availability metadata of weather stations in the DPIRD weather station network from the Weather 2.0 API.
Usage
get_dpird_availability(
station_code = NULL,
start_date = NULL,
end_date = NULL,
values = "availability",
api_key = get_key(service = "DPIRD")
)
Arguments
station_code |
A |
start_date |
A |
end_date |
A |
values |
A |
api_key |
A |
Value
a data.table::data.table()
with station_code
and the requested
metadata.
Available Values
availability (which will return all of the following values),
availabilityCurrentHour,
availabilityLast7DaysSince9AM,
availabilityLast7DaysSince12AM,
availabilityLast14DaysSince9AM,
availabilityLast14DaysSince12AM,
availabilityLast24Hours,
availabilityMonthToDateSince12AM,
availabilityMonthToDateTo9AM,
availabilitySince9AM,
availabilitySince12AM,
availabilityTo9AM,
availabilityYearToDateSince12AM, and
availabilityYearToDateTo9AM
Author(s)
Adam H. Sparks, adamhsparks@gmail.com
See Also
Other DPIRD:
dpird_extreme_weather_values
,
dpird_minute_values
,
dpird_summary_values
,
find_nearby_stations()
,
find_stations_in()
,
get_dpird_apsim()
,
get_dpird_extremes()
,
get_dpird_minute()
,
get_dpird_summaries()
,
get_stations_metadata()
Other metadata:
find_forecast_towns()
,
find_nearby_stations()
,
find_stations_in()
,
get_available_imagery()
,
get_available_radar()
,
get_stations_metadata()
Examples
## Not run:
# Note that you need to supply your own API key
# Here we check the up time for the current year for Westonia
WS001 <- get_dpird_availability(station_code = "WS001",
api_key = "your_api_key")
# Here we check the up time for 2017 for Binnu
BN <- get_dpird_availability(
station_code = "BI",
start_date = "20170101",
end_date = "20171231",
api_key = "your_api_key"
)
## End(Not run)