read_nc: Read NETCDF file

Description Usage Arguments Value Warning Author(s) See Also Examples

Description

Read NETCDF file and extract time, location and a variable from it.

Usage

1
read_nc(file = file.choose(), var = "", lat = "lat", lon = "lon", ...)

Arguments

file

Name of nc file. May include relative or absolute path. DEFAULT: file.choose()

var

Name of variable to extract, interactive choice if var not available and there are more than 1 variables in the file. DEFAULT: ""

lat, lon

Name of latitude and longitude variables. DEFAULT: "lat","lon"

...

Further arguments passed to ncdf4::nc_open, like verbose=TRUE

Value

List with time, lat, lon, var, varname, file, cdf (result of ncdf4::nc_open, from which the previous elements are extracted.)

Warning

This has not yet been tested on many nc files! Please report any errors.

Author(s)

Berry Boessenkool, berry-b@gmx.de, Feb 2017

See Also

vis_nc, get_ncPoint

Examples

1
# to be added

brry/mhmVis documentation built on May 13, 2019, 7:53 a.m.