astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- Astronomical Coordinate Systems (`astropy.coordinates`) »
- BaseGeodeticRepresentation

# BaseGeodeticRepresentation

class astropy.coordinates.BaseGeodeticRepresentation(lon, lat=None, height=None, copy=True)

  Bases: `BaseRepresentation`

  Base geodetic representation.

  Parameters:
    lon, lat astropy:angle-like

      The longitude and latitude of the point(s), in angular units. The latitude should be between -90 and 90 degrees, and the longitude will be wrapped to an angle between 0 and 360 degrees. These can also be instances of `Angle` and either `Longitude` not `Latitude`, depending on the parameter.

    height `Quantity` [:ref: ‘length’]

      The height to the point(s).

    copy bool, optional

      If `True` (default), arrays will be copied. If `False`, arrays will be references, though possibly broadcast to ensure matching shapes.

  Attributes Summary

  `attr_classes` |
  `height` | The 'height' component of the points(s).
  `lat` | The 'lat' component of the points(s).
  `lon` | The 'lon' component of the points(s).

  Methods Summary

  `from_cartesian`(cart) | Converts 3D rectangular cartesian coordinates (assumed geocentric) to WGS84 geodetic coordinates.
  `to_cartesian`() | Converts WGS84 geodetic coordinates to 3D rectangular (geocentric) cartesian coordinates.

  Attributes Documentation

  attr_classes = {'height': <class 'astropy.units.quantity.Quantity'>, 'lat': <class 'astropy.coordinates.angles.Latitude'>, 'lon': <class 'astropy.coordinates.angles.Longitude'>}
  height

    The ‘height’ component of the points(s).

  lat

    The ‘lat’ component of the points(s).

  lon

    The ‘lon’ component of the points(s).

  Methods Documentation

  classmethod from_cartesian(cart)

    Converts 3D rectangular cartesian coordinates (assumed geocentric) to WGS84 geodetic coordinates.

  to_cartesian()

    Converts WGS84 geodetic coordinates to 3D rectangular (geocentric) cartesian coordinates.