dtGetDailyStationDataOverUpToOneYear: Fetch daily Meteostat data for a station

Description Usage Arguments Details Value

View source: R/GetDailyStationData.R

Description

Fetch daily Meteostat data for a station for at most yearly interval

Usage

1
2
3
4
5
6
dtGetDailyStationDataOverUpToOneYear(
  iMeteostatStationId,
  cApiKey,
  dateStartDate,
  dateEndDate
)

Arguments

iMeteostatStationId

- integer scalar, ID of the station as given by Meteostat's dictionary table of weather stations

cApiKey

- character scalar, Meteostat's key to use to fetch the data

dateStartDate

- Date class scalar, first date of the interval for which the data is to be obtained

dateEndDate

- Date class scalar, last date of the interval for which the data is to be obtained

Details

This function fetches data made available via Meteostat's API. Please note that due to the cap on the size of the window for which the data can be fetched, this function can only handle requests that ask for data for up to 370 days. For generalized version of this function capable of handling arbitrary time intervals cf. dtGetDailyStationData

Value

data.table with the data fetched; the colnames are self-explanatory, in case of doubt cf. the implementation and API's documentation: https://dev.meteostat.net/api/stations/daily.html#response


wegar-2/okeanos.meteostat documentation built on March 7, 2021, 12:19 a.m.