View source: R/ERAgetArealPrecip.R
ERAgetArealPrecip | R Documentation |
Extracts the areal precipitation for all time intervals from the ERA NetCDF file for a region. If the data are 3-hour values accumulated over 12-hour periods, then they will be deaccumulated, and negative precipitation will be set to zero
ERAgetArealPrecip(ncdfFile, timezone = "", quiet = TRUE)
ncdfFile |
Required. Name of the NetCDF file containing ERA data. |
timezone |
Required. The name of the timezone of the data as a character string. This should be the timezone of your data, but omitting daylight savings time. Note that the timezone code is specific to your OS. To avoid problems, you should use a timezone without daylight savings time. Under Linux, you can use CST and MST for Central Standard or Mountain Standard time, respectively. Under Windows or OSX, you can use etc/GMT+6 or etc/GMT+7 for Central Standard and Mountain Standard time. DO NOT use America/Regina as the time zone, as it includes historical changes between standard and daylight savings time. |
quiet |
Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave |
If unsuccessful, returns FALSE
. If successful, returns a list containing the following:
Name | meaning |
precip | 3d array (lon x lat x time) of precip (mm) |
lonres | longitude resolution (degrees) |
latres | latitude resolution (degrees) |
minLon | mininum longitude of data(degreesW) |
maxLon | maximum longitude of data(degreesW) |
minLat | minimum latitude of data(degrees) |
minLat | maximum latitude of data(degrees) |
datetime | the datetime of each time layer |
## Not run: threehour_precip <- ERAgetArealPrecip('_grib2netcdf-atls17-95e2cf679cd58ee9b4db4dd119a05a8d-szSVRK.nc', timezone='CST') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.