GeocentricCoordinates

class sofia_redux.scan.coordinate_systems.geocentric_coordinates.GeocentricCoordinates(coordinates=None, unit='degree', copy=True)[source]

Bases: SphericalCoordinates

Initialize geocentric coordinates.

Geocentric coordinates (also known as the Earth-centered, Earth-fixed coordinate system, or ECEF) represent locations on the Earth surface as longitude latitude positions.

Parameters:
coordinateslist or tuple or array-like or units.Quantity, optional

The coordinates used to populate the object during initialization. The first (0) value or index should represent longitudinal coordinates, and the second should represent latitude.

unitunits.Unit or str, optional

The angular unit for the spherical coordinates. The default is ‘degree’.

copybool, optional

Whether to explicitly perform a copy operation on the input coordinates when storing them into these coordinates. Note that it is extremely unlikely for the original coordinates to be passed in as a reference due to the significant checks performed on them.

Attributes Summary

EAST

NORTH

SOUTH

WEST

two_letter_code

Return the two-letter code for the Geodetic coordinate system.

Methods Summary

copy()

Return a copy of the geocentric coordinates.

edit_header(header, key_stem[, alt])

Edit the header with geocentric coordinate information.

get_default_system()

Return the default and local default coordinate system.

Attributes Documentation

EAST = 1
NORTH = 1
SOUTH = -1
WEST = -1
two_letter_code

Return the two-letter code for the Geodetic coordinate system.

Returns:
codestr

Methods Documentation

copy()[source]

Return a copy of the geocentric coordinates.

Returns:
GeocentricCoordinates
edit_header(header, key_stem, alt='')[source]

Edit the header with geocentric coordinate information.

Parameters:
headerastropy.io.fits.header.Header

The header to modify.

key_stemstr

The name of the header key to update.

altstr, optional

The alternative coordinate system.

Returns:
None
classmethod get_default_system()[source]

Return the default and local default coordinate system.

Returns:
system, local_system(CoordinateSystem, CoordinateSystem)