Skip to contents

Make a request to the /climatedata/climatestationtsday endpoint to retrieve climate stations daily time series data by station number, or Site IDs within a given date range (start and end dates)

Usage

get_climate_ts_day(
  station_number = NULL,
  site_id = NULL,
  param = NULL,
  start_date = "1900-01-01",
  end_date = Sys.Date(),
  api_key = NULL
)

Arguments

station_number

character, climate data station number

site_id

character vector or list of characters of climate station site IDs

param

character climate variable. One of: "Evap", "FrostDate", "MaxTemp", "MeanTemp", "MinTemp", "Precip", "Snow", "SnowDepth", "SnowSWE", "Solar","VP", "Wind"

start_date

character date to request data start point YYYY-MM-DD. Default is start date is "1900-01-01".

end_date

character date to request data end point YYYY-MM-DD. Default end date is the current date the function is run.

api_key

character, API authorization token, optional. If more than maximum number of requests per day is desired, an API key can be obtained from CDSS.

Value

dataframe of climate data station daily time series data