cdms2.grid

setRegionSpecs(grid, coordSpec, coordType, resultSpec)[source]

Modify a list of coordinate specifications, given a coordinate type and a specification for that coordinate.

Parameters
gridis the grid object to be associated with the region.
coordSpecis a coordinate specification, having one of the forms:

x

(x,y)

(x,y,’co’)

(x,y,’co’,cycle)

‘:’ None

coordTypeis one of CoordinateTypes
resultSpecis a list of 4-tuples of the form (x,y,’co’,cycle), or None

if no spec for the corresponding dimension type. The function sets the appropriate coordinate in resultSpec, in the canonical form (x,y,’co’,cycle). A CDMSError exception is raised if the entry in resultSpec is not None.

Notes

That time coordinate types are not permitted.