sl.grid.readNCDF: Read NetCDF Grid

sl.grid.readNCDFR Documentation

Read NetCDF Grid

Description

Read a NetCDF grid (e.g. a FESOM grid) using the ncdf4 library.

Usage

sl.grid.readNCDF(filename)

Arguments

filename

a character specifying the path and name of the NetCDF grid description file.

Value

A list with all variables contained in the grid description file.

Note

When reading very large grids and not all grid variables are needed (e.g., only centre lon-lats and not the larger-size corresponding bounds), it might be advisable (because faster) to read only required fields. To do so, use the ncdf4 library directly with nc_open and ncvar_get (also see the code of sl.grid.readNCDF).

Author(s)

Helge Goessling

See Also

sl.grid.readFESOM, sl.grid.writeCDO, sl.grid.writeFESOM

Examples

# To be provided ...

helgegoessling/spheRlab documentation built on April 8, 2024, 8:34 a.m.