: [dims, coord] = nccoord(filename, varname)

Get coordinates of the variable varname in the netcdf file called filename. The netcdf is assumed to follow the CF convention.

Inputs

filename - netcdf filename

varname - variable name

Outputs

dims - a cell-array of the dimensions of varname

coord - an array of structures with the field ’name’ for the variable name, ’dims’ with a cell-array of the netcdf dimensions, the units and NetCDF-CF standard name.

coord is an empty structure if no coordinate information have been found.

Package: ncarray