Bases: object
This mixin class (i.e. a class intended to be subclassed to provide extra functionality) converts FunctionModel input values from one coordinate system to another.
Subclassing
In subclasses, the following class attributes should be defined:
To implement the transform, just call tranformCoordinates() and feed the return value into the f() function.
x.__init__(...) initializes x; see help(type(x)) for signature
Methods
addTransform(input, output, func) | Register a function as a transform from one coordinate system to another. |
transformCoordinates(x[, incoordsys, ...]) | Transform from the input coordinate system into that defined for the model function. |
Attributes
incoordsys |
Register a function as a transform from one coordinate system to another.
Parameters: |
|
---|
Transform from the input coordinate system into that defined for the model function.
Parameters: |
|
---|
if incoordsys is None, self.`incoordsys will be used