cfdm.NetCDFArray.open

NetCDFArray.open()[source]

Return an open netCDF4.Dataset for the file containing the array.

Returns

netCDF4.Dataset

Examples:

>>> netcdf = a.open()
>>> variable = netcdf.variables[a.get_ncvar()]
>>> variable.getncattr('standard_name')
'eastward_wind'