GetNcdfFile: Get variables from a ncdf file

Description Usage Arguments Value See Also Examples

View source: R/ncdf_get.R

Description

This saves some annoying typing.

Usage

1
2
GetNcdfFile(file, variables = NULL, exclude = FALSE, quiet = FALSE,
  flip2D = TRUE, collapse_degen = TRUE)

Arguments

file

Character, the file to inspect.

variables

Character vector, optional. The variables to return. If not specified, all variables are returned.

exclude

Logical, exclude the specified variables and return all others.

quiet

Logical, suppress the 'meta' dump?

flip2D

Logical, apply a vertical flip to 2D variables? (E.g. WRF Hydro geo grids) , apply a vertical flip to 2D variables? (E.g. WRF Hydro geo grids)

Value

A list or a dataframe (if all variables are 1D of the same length.)

See Also

Other ncdf: MkFrcAdjFromLdasin, MkNcdf, ncdump

Examples

1
2
3
4
5
## Not run: 
conn <- GetNcdfFile('~/wrfHydroTestCases/Fourmile_Creek/CHANNEL_CONNECTIVITY.nc')
 conn <- GetNcdfFile('~/wrfHydroTestCases/Fourmile_Creek/CHANNEL_CONNECTIVITY.nc', var='lambert_conformal_conic', exc=TRUE)

## End(Not run)

NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.