View source: R/WATCHgetWFDarealPrecip.R
WATCHgetWFDarealPrecip | R Documentation |
Extacts the WATCH WFD precipitation (rainfall or snowfall) from a monthly netCDF file for a specified domain.
WATCHgetWFDarealPrecip( ncdfFile = "", minLon = 0, maxLon = 0, minLat = 0, maxLat = 0, logfile = "" )
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 |
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.
Kevin Shook
WATCHdailyArealPrecip
## Not run: monthly_rain <- WATCHgetWFDarealPrecip('Rainf_WFD_CRU_190101.nc', minLon = -105, maxLon = -95, minLat = 49, maxLat = 56) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.