get_dpird_minute {weatherOz} | R Documentation |
Get DPIRD Weather Data by the Minute
Description
Fetch nicely formatted minute weather station data from the DPIRD Weather 2.0 API for a maximum 24-hour period.
Usage
get_dpird_minute(
station_code,
start_date_time = lubridate::now() - lubridate::hours(24L),
minutes = 1440L,
values = "all",
api_key = get_key(service = "DPIRD")
)
Arguments
station_code |
A |
start_date_time |
A |
minutes |
An |
values |
A |
api_key |
A |
Value
a data.table::data.table()
with station_code
and the date interval
queried together with the requested weather variables.
Available Values
all (which will return all of the following values),
airTemperature,
dateTime,
dewPoint,
rainfall,
relativeHumidity,
soilTemperature,
solarIrradiance,
wetBulb,
wind,
windAvgSpeed,
windMaxSpeed, and
windMinSpeed
Note
Please note this function converts date-time columns from Coordinated Universal Time ‘UTC’ returned by the API to Australian Western Standard Time ‘AWST’.
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_availability()
,
get_dpird_extremes()
,
get_dpird_summaries()
,
get_stations_metadata()
Other data fetching:
get_ag_bulletin()
,
get_coastal_forecast()
,
get_data_drill()
,
get_data_drill_apsim()
,
get_dpird_apsim()
,
get_dpird_extremes()
,
get_dpird_summaries()
,
get_patched_point()
,
get_patched_point_apsim()
,
get_precis_forecast()
,
get_radar_imagery()
,
get_satellite_imagery()
Examples
## Not run:
# Note that you need to supply your own API key
get_dpird_minute(
station_code = "SP",
start_date_time = "2023-02-01 13:00:00",
minutes = 1440,
values = c("airTemperature",
"solarIrradiance",
"wind"),
api_key = "your_api_key"
)
## End(Not run)