astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- Models and Fitting (`astropy.modeling`) »
- Reference/API »
- RotateNative2Celestial

# RotateNative2Celestial

class astropy.modeling.rotations.RotateNative2Celestial(lon, lat, lon_pole, **kwargs)

  Bases: `_SkyRotation`

  Transform from Native to Celestial Spherical Coordinates.

  Parameters:
    lon `python:float` or `Quantity` [:ref: ‘angle’]

      Celestial longitude of the fiducial point.

    lat `python:float` or `Quantity` [:ref: ‘angle’]

      Celestial latitude of the fiducial point.

    lon_pole `python:float` or `Quantity` [:ref: ‘angle’]

      Longitude of the celestial pole in the native system.

  Notes

  If `lon`, `lat` and `lon_pole` are numerical values they should be in units of deg. Inputs are angles on the native sphere. Outputs are angles on the celestial sphere.

  Attributes Summary

  `input_units` | Input units.
  `n_inputs` | The number of inputs.
  `n_outputs` | The number of outputs.
  `return_units` | Output units.

  Methods Summary

  `__call__`(*inputs[, model_set_axis, ...]) | Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

  `evaluate`(phi_N, theta_N, lon, lat, lon_pole)

  Parameters:

  Attributes Documentation

  input_units

    Input units.

  n_inputs = 2

    The number of inputs.

  n_outputs = 2

    The number of outputs.

  return_units

    Output units.

  Methods Documentation

  __call__(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)

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

  evaluate(phi_N, theta_N, lon, lat, lon_pole)
    Parameters:
      phi_N, theta_N `python:float` or `Quantity` [:ref: ‘angle’]

        Angles in the Native coordinate system. it is assumed that numerical only inputs are in degrees. If float, assumed in degrees.

      lon, lat, lon_pole `python:float` or `Quantity` [:ref: ‘angle’]

        Parameter values when the model was initialized. If float, assumed in degrees.

    Returns:
      alpha_C, delta_C `python:float` or `Quantity` [:ref: ‘angle’]

        Angles on the Celestial sphere. If float, in degrees.