cdms2.dataset

openDataset(uri, mode='r', template=None, dods=1, dpath=None, hostObj=None)[source]

Open Dataset

Parameters
uristr

Filename to open.

modestr

Mode to open file with. ‘r’: Read (default) ‘w’: Write ‘a’: Append

templatestr

Template for the datafile(s) used for dataset creation.

dodsint

Opens remote/local files when set to 1 or attempts to open local when set 0.

dpathstr

Destination path.

Returns
cdms2.CdmsFile

Opened handle to file.