Learn R Programming

oce (version 1.8-1)

read.netcdf: Read a NetCDF File

Description

Read a netcdf file, trying to interpret its contents sensibly.

Usage

read.netcdf(file, ..., encoding = NA, debug = getOption("oceDebug"))

Value

An oce object.

Arguments

file

the name of a file

...

ignored

encoding

ignored.

debug

an integer specifying whether debugging information is to be printed during the processing. This is a general parameter that is used by many oce functions. Generally, setting debug=0 turns off the printing, while higher values suggest that more information be printed. If one function calls another, it usually reduces the value of debug first, so that a user can often obtain deeper debugging by specifying higher debug values.

Details

It is important to note that this is a preliminary version of this function, and much about it may change without notice. Indeed, it may be removed entirely.

Below are some features that may be changed.

  1. The names of data items are not changed from those in the netcdf file on the assumption that this will offer the least surprise to the user.

  2. An attempt is made to find some common metadata from global attributes in the netcdf file. These attributes include Longitude, Latitude, Ship and Cruise. Before they are stored in the metadata, they are converted to lower case, since that is the oce convention.