Package pygeodesy :: Module frechet :: Class FrechetRadians |
[frames] | no frames]

# Class FrechetRadians

      object --+
               |
    named._Named --+
                   |
             Frechet --+
                       |
                      FrechetRadians

Known Subclasses:
  - FrechetCosineAndoyerLambert
  - , FrechetCosineForsytheAndoyerLambert
  - , FrechetCosineLaw
  - , FrechetEquirectangular
  - , FrechetEuclidean
  - , FrechetFlatLocal
  - , FrechetFlatPolar
  - , FrechetHaversine
  - , FrechetThomas
  - , FrechetVincentys

Frechet base class for distances in `radians` or `radians squared` from `LatLon` points converted from `degrees` to `radians`.

Instance Methods
__init__(self, points, fraction=None, name='', units='', **wrap_adjust) New `Frechet...` calculator/interpolator. |
discrete(self, points, fraction=None) Compute the `forward, discrete Fréchet` distance. |
point(self, point) Convert `(lat, lon)` point in degrees to `(a, b)` in radians. |
Inherited from `Frechet`: `distance`, `points_`, `points_fraction` Inherited from `named._Named`: `_DOT_`, `__imatmul__`, `__matmul__`, `__repr__`, `__rmatmul__`, `__str__`, `attrs`, `classof`, `copy`, `dup`, `rename`, `toRepr`, `toStr`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
Inherited from `Frechet`: `adjust`, `datum`, `fraction`, `units`, `wrap` Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2`, `named3`, `named4` Inherited from `object`: `__class__`

Method Details

### __init__ (self, points, fraction=None, name='', units='', **wrap_adjust) (Constructor) |
New `Frechet...` calculator/interpolator. Arguments: `points` - First set of points (`LatLon`[], Numpy2LatLon[], Tuple2LatLon[] or `other`[]). `fraction` - Index fraction (`float` in EPS..EPS1) to interpolate intermediate `points` or use `None`, `0` or `1` for no intermediate `points` and no fractional indices. `name` - Optional calculator/interpolator name (`str`). `units` - Optional, the distance units (`Unit` or `str`). `wrap_adjust` - Optionally, `wrap` and unroll longitudes, iff applicable (`bool`) and `adjust` wrapped, unrolled longitudinal delta by the cosine of the mean latitude, iff applicable. Raises: `FrechetError` - Insufficient number of `points` or invalid `fraction` or `wrap` or `ajust` not applicable. Overrides: object.__init__

### discrete (self, points, fraction=None) |
Compute the `forward, discrete Fréchet` distance. Arguments: `points` - Second set of points (`LatLon`[], Numpy2LatLon[], Tuple2LatLon[] or `other`[]). `fraction` - Index fraction (`float` in EPS..EPS1) to interpolate intermediate `points` or use `None`, `0` or `1` for no intermediate `points` and no fractional indices. Returns: A Frechet6Tuple`(fd, fi1, fi2, r, n, units)`. Raises: `FrechetError` - Insufficient number of `points` or an invalid `point` or `fraction`. `RecursionError` - Recursion depth exceeded, see sys.getrecursionlimit(). Overrides: Frechet.discrete

### point (self, point) |
Convert `(lat, lon)` point in degrees to `(a, b)` in radians. Arguments: `point` - The point to convert ((`LatLon`, Numpy2LatLon, Tuple2LatLon or `other`). Returns: An PhiLam2Tuple`(phi, lam)`. Overrides: Frechet.point