Pix2SkyProjection

class astropy.modeling.projections.Pix2SkyProjection(*args, meta=None, name=None, **kwargs)[source] [edit on github]

Bases: astropy.modeling.projections.Projection

Base class for all Pix2Sky projections.

Attributes Summary

input_units This property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or None if any units are accepted).
inputs
outputs
return_units This property is used to indicate what units or sets of units the output of evaluate should be in, and returns a dictionary mapping outputs to units (or None if any units are accepted).

Methods Summary

__call__(x, y[, model_set_axis, …]) Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

Attributes Documentation

input_units

This property is used to indicate what units or sets of units the evaluate method expects, and returns a dictionary mapping inputs to units (or None if any units are accepted).

Model sub-classes can also use function annotations in evaluate to indicate valid input units, in which case this property should not be overridden since it will return the input units based on the annotations.

inputs = ('x', 'y')
outputs = ('phi', 'theta')
return_units

This property is used to indicate what units or sets of units the output of evaluate should be in, and returns a dictionary mapping outputs to units (or None if any units are accepted).

Model sub-classes can also use function annotations in evaluate to indicate valid output units, in which case this property should not be overridden since it will return the return units based on the annotations.

Methods Documentation

__call__(x, y, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None) [edit on github]

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.