PlateCarreeProjection

class sofia_redux.scan.coordinate_systems.projection.plate_carree_projection.PlateCarreeProjection[source]

Bases: CylindricalProjection

Initialize a plate carree projection.

The plate carree (French for “flat square”) projection is an equirectangular or equidistant cylindrical projection in which the standard parallel is zero (the equator). Meridians are vertical straight lines of constant spacing, and circles of latitude are horizontal straight lines of constant spacing. It is neither equal-area nor conformal.

Methods Summary

get_fits_id()

Return the FITS ID for the projection.

get_full_name()

Return the full name of the projection.

get_offsets(theta, phi[, offsets])

Get the offsets given theta and phi.

get_phi_theta(offset[, phi_theta])

Return the phi (longitude) and theta (latitude) coordinates.

Methods Documentation

classmethod get_fits_id()[source]

Return the FITS ID for the projection.

Returns:
str
classmethod get_full_name()[source]

Return the full name of the projection.

Returns:
str
classmethod get_offsets(theta, phi, offsets=None)[source]

Get the offsets given theta and phi.

Takes the theta (latitude) and phi (longitude) coordinates about the celestial pole and converts them to offsets from a reference position. For the plate carree projection, this is given by:

x = phi y = theta

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
classmethod get_phi_theta(offset, phi_theta=None)[source]

Return the phi (longitude) and theta (latitude) coordinates.

The phi and theta coordinates refer to the inverse projection (deprojection) of projected offsets about the native pole. phi is the deprojected longitude, and theta is the deprojected latitude of the offsets. For the plate carree projection these are given as:

phi = x theta = y

Parameters:
offsetCoordinate2D
phi_thetaSphericalCoordinates, optional

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

Returns:
coordinatesSphericalCoordinates