Learn R Programming

jcext (version 0.1.1)

read_ncdata: read_ncdata

Description

Reads a ncdf input file to extract the input for the classification: pressure field, longitudes, latitudes and dates. Absolute time is required to read the dates properly.

Usage

read_ncdata(ncinput, nam_coor, units)

Arguments

ncinput

A NETCDF file with pressure field.

nam_coor

Names of space and time coordinates

units

Units required (Pa or hPa).

Value

A list with:

  • A 3D-array of mean sea level (or pressure field) as [lon,lat,times]. The units returned as hPa.

  • A numeric with longitudes values.

  • A numeric with latitudes values.

  • A numeric with dates values.