get_dataset: Get a portion of the WIND Toolkit dataset as a tidy dataframe...

Description Usage Arguments Value

Description

Get a portion of the WIND Toolkit dataset as a tidy dataframe for a datetime range and a geographic nearest point.

Usage

1
2
get_dataset(datasets, api_key, dataset_titles, datetime_info, latitude,
  longitude)

Arguments

datasets

The dataframe with datasets retrieved from get_datasets()

api_key

API key to access the dataset.

dataset_titles

A string vector containing the dataset titles to retrieve, e.g. c("windspeed_80m", "temperature_80m", "relativehumidity_2m"). Avoid the special datasets "datetime" and "coordinates", which are added by default in the process.

datetime_info

A named list (as formatted by compute_datetime_info()) with the datetime range and step.

latitude

The latitude of the point (WGS84).

longitude

The longitude of the point (WGS84).

Value

A dataframe (tibble) in tidy format with the values of each information requested for the datetime range and the geographic nearest point.


floresfdev/wtkapi documentation built on May 24, 2019, 7:14 a.m.