# Sky2PixProjection¶

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

Base class for all Sky2Pix 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). input_units_allow_dimensionless input_units_strict 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__(phi, theta[, 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 overriden since it will return the input units based on the annotations.

input_units_allow_dimensionless = True
input_units_strict = True
inputs = ('phi', 'theta')
outputs = ('x', 'y')
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 overriden since it will return the return units based on the annotations.

Methods Documentation

__call__(phi, theta, 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.