TelescopeCoordinates

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

Bases: SphericalCoordinates

Initialize a set of telescope coordinates.

Telescope coordinates are spherical coordinates relating to the telescope elevation and cross-elevation.

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 telescope 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

cross_elevation

Return the cross elevation.

el

Return the elevation.

elevation

Return the elevation.

fits_latitude_stem

Return the string prefix for the elevation latitude.

fits_longitude_stem

Return the string prefix for cross elevation longitude.

two_letter_code

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

xel

Return the cross elevation.

Methods Summary

copy()

Return a copy of the telescope coordinates.

edit_header(header, key_stem[, alt])

Edit the header with telescope coordinate information.

setup_coordinate_system()

Setup the system for the coordinates.

to_equatorial_offset(offset, telescope_vpa)

Return these coordinates as equatorial coordinates.

Attributes Documentation

cross_elevation

Return the cross elevation.

Returns:
astropy.units.Quantity
el

Return the elevation.

Returns:
astropy.units.Quantity
elevation

Return the elevation.

Returns:
astropy.units.Quantity
fits_latitude_stem

Return the string prefix for the elevation latitude.

Returns:
str
fits_longitude_stem

Return the string prefix for cross elevation longitude.

Returns:
str
two_letter_code

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

Returns:
codestr
xel

Return the cross elevation.

Returns:
astropy.units.Quantity

Methods Documentation

copy()[source]

Return a copy of the telescope coordinates.

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

Edit the header with telescope 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
setup_coordinate_system()[source]

Setup the system for the coordinates.

Returns:
None
to_equatorial_offset(offset, telescope_vpa, in_place=True)[source]

Return these coordinates as equatorial coordinates.

Parameters:
offsetCoordinate2D
telescope_vpaastropy.units.Quantity

The telescope VPA angle(s).

in_placebool, optional

If True, update the offsets in-place. Otherwise, return a fresh frame.

Returns:
Coordinate2D