ceda_data_path: Create a list of file paths to CEDA cru_cy files

Description Usage Arguments Value

View source: R/utilities.R

Description

Create a list of file paths to CEDA cru_cy files

Usage

1
2
3
4
5
6
ceda_data_path(
  ceda_data_folder = sample_ceda_data_folder(),
  country,
  metric = c("cld", "dtr", "frs", "pet", "pre", "tmn", "tmp", "tmx", "vap", "wet"),
  version = 2020
)

Arguments

ceda_data_folder

The file path to the folder containing the cru_cy CEDA Data, specificially a folder named "CEDA Data". By default this is set to sample_ceda_data_folder, but any file path leading to the "CEDA Data" folder can be used. Note that the data must be present in a folder in CEDA Data/CEDA_2020 with the corresponding metric code.

country

Any of the countries present in cru_cy CEDA files, note that some country names are unique to CEDA, as they are taken from the file names, and contain underscores, and abbreviations such as "Isl" for "Islands".

metric

One of:"cld" = Cloud cover, "dtr" = Diurnal temperature range, "frs" = Ground frost frequency, "pet" = Potential evapotranspiration, "pre" = Precipitation, "tmn" = Near surface temperature minimum, "tmp" = Near surface temperature, "tmx" = Near surface temperature maximum, "vap" = Vapour pressure, "wet" = Wet day frequency

version

An integer representing the year in which CEDA data were released. E.g., 2020 means data up through year 2019 that were released in the year 2020.

Value

a list of file paths for selected cru_cy CEDA text files (.per), determined by metric and country.


EnergyEconomyDecoupling/CEDATools documentation built on Dec. 30, 2021, 12:15 a.m.