extract_daily_weather_from_gridMET: Extract daily gridded weather data from the gridMET dataset

Description Usage Arguments Details References

View source: R/WeatherDB.R

Description

Extracts daily gridded weather data, including precipitation, maximum temperature and minimum temperature from the gridMET (Abatzoglou 2013) database: a 1/24 degree gridded weather database that contains data for the years 1979 - yesterday.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
extract_daily_weather_from_gridMET(
  dir_data,
  site_ids,
  site_ids_by_dbW,
  coords,
  start_year,
  end_year,
  comp_type = "gzip",
  dbW_digits = 2,
  verbose = FALSE
)

Arguments

dir_data

A character string. The directory containing the gridMET dataset files.

site_ids

An integer vector. The indices of sites for which to extract gridMET weather data.

coords

A two-dimensional numerical object. The coordinates for each site in WGS84.

start_year

An integer value. The first calendar year for which to extract daily weather data.

end_year

An integer value. The last calendar year for which to extract daily weather data.

comp_type

A character string. The compression type used by the weather database.

dbW_digits

An integer value. The number of digits to which the daily weather values are rounded to.

verbose

A logical value.

Details

Run the function gridMET_download_and_check to download and check the dataset.

References

Abatzoglou, J. T. (2013) Development of gridded surface meteorological data for ecological applications and modelling. Int. J. Climatol., 33: 121–131.


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.