Reads a single COARDS data grid from a netCDF file.
Assumes that the entire file should be read into memory.
The Cooperative Ocean/Atmosphere Research Data Service (COARDS) is a NOAA/university cooperative for the sharing and distribution of global atmospheric and oceanographic research data sets. COARDS is also a NAVOCEANO recommended practice for netCDF files.
netcdf_coards | ( | NcFile & | file, | |
NcToken | name, | |||
bool | read_fill = false | |||
) | [inline] |
Extract a named data grid from an open NetCDF file.
Creates new memory area for field data. Replaces missing data with fill value.
file | Reference to an open NetCDF file. | |
name | Name of the data grid to extract (case sensitive). | |
read_fill | Read _FillValue from NetCDF file if true. Use NAN as fill value if false. |
seq_vector* make_axis | ( | NcFile & | file, | |
NcDim * | dimension | |||
) | [inline, private] |
Construct a seq_vector from NetCDF dimension object.
Inspects the data to see if seq_linear or seq_log can be used to optimize the performance of this dimension->
file | NetCDF file to process. | |
dimension | NetCDF dimension. The COARDS spec assumes that there is a NetCDF variable of the same name. |