pyinterp.geometry.geographic.Spheroid

Contents

pyinterp.geometry.geographic.Spheroid#

class pyinterp.geometry.geographic.Spheroid(self)#
class pyinterp.geometry.geographic.Spheroid(self, semi_major_axis: float, flattening: float)

Bases: object

Define a reference ellipsoid for geodetic calculations.

Parameters:
  • semi_major_axis – Semi-major axis of ellipsoid, in meters.

  • flattening – Flattening of ellipsoid.

Note

The default constructor initializes a WGS-84 ellipsoid.

Overloaded function.

  1. __init__(self) -> None

Initialize the spheroid with WGS-84 ellipsoid.

  1. __init__(self, semi_major_axis: float, flattening: float) -> None

Initialize the spheroid with custom parameters.

Attributes

flattening

Flattening of ellipsoid (\(f=\frac{a-b}{a}\)).

semi_major_axis

Semi-major axis of ellipsoid, in meters (\(a\)).

Public Methods

authalic_radius(self)

Get the authalic radius.

axis_ratio(self)

Get the axis ratio.

equatorial_circumference(self[, semi_major_axis])

Get the equatorial circumference.

equatorial_radius_of_curvature(self)

Get the equatorial radius of curvature for a meridian.

first_eccentricity_squared(self)

Get the first eccentricity squared.

geocentric_radius(self, lat)

Get the geocentric radius at the given latitude \(\phi\).

linear_eccentricity(self)

Get the linear eccentricity.

mean_radius(self)

Get the mean radius.

polar_radius_of_curvature(self)

Get the polar radius of curvature.

second_eccentricity_squared(self)

Get the second eccentricity squared.

semi_minor_axis(self)

Get the semi-minor axis.

volumetric_radius(self)

Get the volumetric radius.

Special Methods

__eq__(self, other)

Override the default behavior of the == operator.

__getstate__(self)

Get the state for pickling.

__ne__(self, other)

Override the default behavior of the != operator.

__new__(*args, **kwargs)

__setstate__(self, state)

Set the state for unpickling.