CylindricalProjection

class sofia_redux.scan.coordinate_systems.projection.cylindrical_projection.CylindricalProjection[source]

Bases: SphericalProjection

An abstract cylindrical projection class.

A cylindrical projection normally defines one in which meridians are mapped to equally spaced vertical lines and parallels are mapped to horizontal lines.

Initialize a spherical projection.

A forward spherical projection takes a set of spherical coordinates, converting them from a celestial pole to a native pole, and usually returns offsets from a given reference wrt a native reference. The exact details will vary by projection model. A deprojection is the reverse operation, where a set of offsets is converted back to spherical coordinates.

Methods Summary

get_offsets(theta, phi[, offsets])

Get the offsets given theta and phi.

get_phi_theta(offset[, phi_theta])

Return the phi_theta coordinates.

Methods Documentation

abstract get_offsets(theta, phi, offsets=None)[source]

Get the offsets given theta and phi.

Parameters:
thetaunits.Quantity

The theta angle.

phiunits.Quantity

The phi angle.

offsetsCoordinate2D, optional

An optional coordinate system in which to place the results.

Returns:
offsetsCoordinate2D
abstract get_phi_theta(offset, phi_theta=None)[source]

Return the phi_theta coordinates.

Parameters:
offsetCoordinate2D
phi_thetaSphericalCoordinates, optional

An optional output coordinate system in which to place the results.

Returns:
coordinatesSphericalCoordinates