cdms2.variable:DatasetVariable

DatasetVariable.expertPaths(slist)[source]

Expert Paths

Parameters
expertPaths(self, slicelist) takes a list of slices
Returns
a 3-tuple (npart, dimensionlist, partitionSlices)
Where
npartis the number of partitioned dimensions: 0, 1, or 2;
dimensionlistis a tuple of length npart, having the dimension numbers of the partitioned dimensions;
partitionSlicesis the list of file-specific (filename, slice) corresponding
to the paths and slices within the files to be read.
The exact form of partitionSlices depends on the value of npart
npartpartitionSlices
0(filename,slicelist)
1[(filename,slicelist),…,(filename,slicelist)]
2[[(filename,slicelist),…,(filename,slicelist)]

[(filename,slicelist),…,(filename,slicelist)] [(filename,slicelist),…,(filename,slicelist)]]

Notes

  • A filename of None indicates that no file was found with data corresponding to the slicelist.

  • If partitionSlices is None, the slicelist does not intersect the domain.

  • An empty partitionSlices [] means that the variable is zero-dimensional.