cdms2.hgrid:AbstractCurveGrid

AbstractCurveGrid.getGridSlices(domainlist, newaxislist, slicelist)[source]

Determine which slices in slicelist correspond to the lat/lon elements of the grid.

Parameters
domainlistis a list of axes of a variable.
newaxislistis a list of result axes after the slicelist is applied to domainlist.
slicelistis a list of slices.
All lists are of equal length.
Returns
valueis (newslicelist, gridaxislist) where
newslicelistis the elements of slicelist that correspond to the grid, in the

preferred order of the grid.

gridaxislistis the elements of newaxislist that correspond to the grid, in the

preferred order of the grid.