dash.dataSource.nc.nc

Create a new dash.dataSource.nc object


Syntax



Description

obj = dash.dataSource.nc(file, var)

Creates a nc object to read data from a variable in a NetCDF file

obj = dash.dataSource.nc(opendapURL, var)

Creates an nc object to read data from a variable stored in a NetCDF file accessed via an OPENDAP url.


Input Arguments

file

string scalar
The name of a NetCDF file

url

string scalar
An OPENDAP url to a NetCDF file.

var

string scalar
The name of the variable in the file

Output Arguments

obj

scalar dash.*dataSource*.*nc* object
The new nc object