Get NOAA GHCN-Daily Data for a Specific Station
get_ghcn_daily_data.Rd
This function retrieves time series data from the NOAA GHCN-Daily dataset for a specific weather station within a given date range.
Arguments
- station_id
Character. The ID of the weather station.
- start_date
Date or character string in "YYYY-MM-DD" format. The start date for data retrieval.
- end_date
Date or character string in "YYYY-MM-DD" format. The end date for data retrieval.
- token
Character. NOAA API token for authentication.
- datatype
Character vector. Types of data to retrieve (e.g., "TMAX", "TMIN", "PRCP"). Default is all available types.
Value
A data frame containing the time series data for the specified station and date range, including:
- date
Date. The date of the observation.
- datatype
Character. The type of data (e.g., "TMAX", "TMIN", "PRCP").
- value
Numeric. The recorded value for the datatype.
- attributes
Character. Any attributes associated with the value.