readIMERG_nc4: Read IMERG data from netCDF4 file.

Description Usage Arguments Value

View source: R/sibadaR.R

Description

Only for the nc4 format IMERG data. Offering a series of path of the IMERG files, or single file path, and the coordinates of the data.

Usage

1
readIMERG_nc4(files, x, y, varsn = 1, verbose = FALSE)

Arguments

files

Paths of the IMERG files to be read.

x

Longitudes of the points where get the precipitation data.

y

Latitudes of the points where get the precipitation data. Length should be as same as x.

varsn

Order of which variable to be read. Default the first variable.

verbose

If TRUE, it will print the files read. Default FALSE.

Value

A data frame of the IMERG data, for each column means a point, and each row means a time step. If only offered one point or one file, will return a vector of the data.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.