WATCHgetWFDarealPrecip: Extracts the WATCH WFD precipitation for a specified domain

View source: R/WATCHgetWFDarealPrecip.R

WATCHgetWFDarealPrecipR Documentation

Extracts the WATCH WFD precipitation for a specified domain

Description

Extacts the WATCH WFD precipitation (rainfall or snowfall) from a monthly netCDF file for a specified domain.

Usage

WATCHgetWFDarealPrecip(
  ncdfFile = "",
  minLon = 0,
  maxLon = 0,
  minLat = 0,
  maxLat = 0,
  logfile = ""
)

Arguments

ncdfFile

Required. NetCDF file containing monthly WATCH WFD precipitation (rainfall or snowfall). The file name must begin with the precipitation type (i.e. Rainf or Snowf and must end with the year and month, as in 190101.

minLon

Required. Minimum longitude for area to be extracted.

maxLon

Required. Maximum longitude for area to be extracted.

minLat

Required. Minimum latitude for area to be extracted.

maxLat

Required. Maximum latitude for area to be extracted.

logfile

Optional. Name of the file to be used for logging the action. Normally not used

Value

If successful, returns a data frame containing all of the precipitation values. The rows contain the values for each location for all time intervals. The first 2 columns contain the Longitude and Latitude, respectively for each location within the domain. The following columns contain the precipitation rate for each time interval. The names of these columns are the time intervals, e.g. 1901-01-01_00:00 (note the underscore) in GMT.

Author(s)

Kevin Shook

See Also

WATCHdailyArealPrecip

Examples

## Not run: 
monthly_rain <- WATCHgetWFDarealPrecip('Rainf_WFD_CRU_190101.nc',
 minLon = -105, maxLon = -95, minLat = 49, maxLat = 56)
## End(Not run)

CentreForHydrology/Reanalysis documentation built on Nov. 23, 2022, 2:57 a.m.