ERAgetArealPrecip: Get ERA areal precipitation

View source: R/ERAgetArealPrecip.R

ERAgetArealPrecipR Documentation

Get ERA areal precipitation

Description

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

Usage

ERAgetArealPrecip(ncdfFile, timezone = "", quiet = TRUE)

Arguments

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 quiet=TRUE (i.e. the default). If you are working interactively, you will probably want to set quiet=FALSE

Value

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

Examples

## Not run: threehour_precip <- 
ERAgetArealPrecip('_grib2netcdf-atls17-95e2cf679cd58ee9b4db4dd119a05a8d-szSVRK.nc', 
timezone='CST')

## End(Not run)

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