extract_daily_weather_from_livneh: Extract Gridded Weather Data from a Livneh Database

Description Usage Arguments Author(s) References

View source: R/WeatherDB.R

Description

Extracts daily gridded weather data, including precipitation, maximum temperature and minimum temperature from the Livneh database: a 1/16 degree gridded weather database that contains data for the years 1915 - 2011.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
extract_daily_weather_from_livneh(
  dir_data,
  dir_temp,
  site_ids,
  site_ids_by_dbW,
  coords,
  start_year,
  end_year,
  f_check = TRUE,
  backup = TRUE,
  comp_type = "gzip",
  dbW_digits = 2,
  verbose = FALSE
)

Arguments

dir_data

directory containing Livneh data

dir_temp

the database directory

site_ids

the sites to gather weather data for

coords

the coordinates for each site in WGS84 format

start_year

the start year in the sequence of data to gather

end_year

the end year in the sequence of data to gather

f_check

flag to check for errors in file structure - TRUE for check else no integrity check

backup

flag to create a backup of the weather data prior to insertion in the database (can create large files) - TRUE for backup else no backup

comp_type

the compression type of the data to be inserted into the database

run_parallel

whether the extraction should be ran in parallel

num_cores

the number of cores to use if parallel

Author(s)

Charles Duso cd622@nau.edu

References

Livneh Weather Website


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