GeodeticCoordinates

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

Bases: SphericalCoordinates

Initialize geodetic coordinates.

Geodetic coordinates are based on a reference ellipsoid model of the Earth using geodetic longitude, latitude, and height.

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

A

B

EAST

F

NORTH

SOUTH

WEST

Z

two_letter_code

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

Methods Summary

copy()

Return a copy of the geodetic coordinates.

edit_header(header, key_stem[, alt])

Edit the header with geodetic coordinate information.

from_geocentric(geocentric)

Convert from a geocentric representation.

get_default_system()

Return the default and local default coordinate system.

Attributes Documentation

A = <Quantity 6378137. m>
B = <Quantity 6356752.3 m>
EAST = 1
F = 3.3528131778969145e-06
NORTH = 1
SOUTH = -1
WEST = -1
Z = <Quantity 0.69156618 deg>
two_letter_code

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

Returns:
codestr

Methods Documentation

copy()[source]

Return a copy of the geodetic coordinates.

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

Edit the header with geodetic 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
from_geocentric(geocentric)[source]

Convert from a geocentric representation.

Parameters:
geocentricGeocentricCoordinates
Returns:
None
classmethod get_default_system()[source]

Return the default and local default coordinate system.

Returns:
system, local_system(CoordinateSystem, CoordinateSystem)