gridMET_download_and_check: Prepare script to download all or missing files of the...

Description Usage Arguments Value Notes References Examples

View source: R/WeatherDB.R

Description

Prepare script to download all or missing files of the gridMET dataset

Usage

1

Arguments

dir_data

A character string. Path to where the gridMET dataset is/will be stored on disk.

desc

A named list. Describing the gridMET dataset.

Value

If all files are available, then a message is printed to the R console with that information. Otherwise, the message points to a .sh script that was created at dir_data which must be run separately to download the missing files.

Notes

The download scripts use wget, i.e., it must be available on your system to work. The scripts are based on the dataset repository setup at http://www.climatologylab.org/gridmet.html as of Nov 2019. This dataset has also been know as METDATA.

References

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

Examples

1
2
3
4
5
if (exists("SFSW2_prj_meta")) {
  gridMET_download_and_check(
   dir_data = SFSW2_prj_meta[["project_paths"]][["dir_gridMET"]]
 )
}

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