climdata: Obtain SNAP climate data sets

Description Usage Arguments Details Value Examples

Description

Download climate data sets from SNAP.

Usage

1
2
climdata(id, area, set = NULL, time_scale = "monthly",
  decavg = FALSE, variable = NULL)

Arguments

id

character, data set ID. See climate_collections for available data sets.

area

character, region or point location of interest. See climate_locations.

set

character or NULL, The set/group that area belongs to. Can be ignored, but should be provided in rare cases where area name is not unique (a warning is thrown). See climate_locations.

time_scale

character, "monthly", "seasonal", "annual".

decavg

logical, if TRUE, return decadal means of annual statistics. See details.

variable

NULL or character: "tas", "tasmin", "tasmax" or "pr". See details.

Details

This function downloads climate data sets from Scenarios Network for Alaska and Arctic Planning based on the data set id and specification of the region or point location of interest.

For regional climate data, annual statistics with a temporal resolution of monthly, 3-month seasonal and full annual period are based on regional spatial climate variable distribution samples at the respective resolution.

Statistics include:

Comparatively, point location data sets do not include statistics regarding the surrounding spatial distribution of values. Only the Mean column is retained in these tables.

Seasonal and annual aggregate statistics represent means for temperature variables and totals for precipitation. Note that decadal averages are strictly as their name suggests: decadal means of each statistic at the respective intra-annual time steps. E.g., decavg = TRUE returns a data frame including the mean of ten annual 95th percentile values, not the 95th percentile of the spatial climate variable distribution at a decadal resolution. For something like the latter, this can be computed from raw distribution data.

Data sets are retrieved for specific locations. For the smaller, decadal resolution data sets, there is an option to download all point locations in one table with area = "points" (requires decavg = TRUE), but in this case it must be requested for a specific climate variable to further reduce the download size to no more than 24 MB compressed for all 3,867 point locations. In general, if variable = NULL, all available climate variables are retained. In the case of area = "points", a specific climate variable must be provided or it will default to temperature (tas).

Value

a data frame.

Examples

1
climdata("ar5stats", "AK-CAN")

leonawicz/snapclim documentation built on May 15, 2019, 5:02 a.m.