Package pygeodesy :: Module heights :: Class HeightIDWeuclidean |
[frames] | no frames]

# Class HeightIDWeuclidean

      object --+
               |
    named._Named --+
                   |
         _HeightBase --+
                       |
              _HeightIDW --+
                           |
                          HeightIDWeuclidean

Known Subclasses:
  - deprecated.HeightIDW

Height interpolator using Inverse Distance Weighting (IDW) and the angular distance in `radians` from function euclidean_.

See Also: HeightIDWcosineLaw, HeightIDWequirectangular, HeightIDWhaversine, HeightIDWvincentys, IDW and SHEPARD_INTERP_2D.

Instance Methods
__call__(self, *llis) Interpolate the height for one or several locations. |
__init__(self, knots, adjust=True, beta=2, name=`'````'`) New HeightIDWeuclidean interpolator. |
height(self, lats, lons) Interpolate the height for one or several lat-/longitudes. |
Inherited from `_HeightIDW`: `_distances_angular_`, `_distances_angular_datum_` Inherited from `named._Named`: `__repr__`, `__str__`, `_dot_`, `attrs`, `classof`, `copy`, `toRepr`, `toStr`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
Inherited from `_HeightIDW`: `beta` Inherited from `_HeightBase`: `adjust`, `datum`, `kmin`, `wrap` Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2` Inherited from `object`: `__class__`

Method Details

### __call__ (self, *llis) (Call operator) |
Interpolate the height for one or several locations. Arguments: `llis` - The location or locations (`LatLon`, ... or `LatLon`s). Returns: A single interpolated height (`float`) or a list or tuple of interpolated heights (`float`s). Raises: `HeightError` - Insufficient number of `llis`, an invalid `lli` or an fidw issue. Overrides: _HeightBase.__call__

### __init__ (self, knots, adjust=True, beta=2, name=`'````'`) (Constructor) |
New HeightIDWeuclidean interpolator. Arguments: `knots` - The points with known height (`LatLon`s). `adjust` - Adjust the longitudinal delta by the cosine of the mean latitude for `adjust`=`True`. `beta` - Inverse distance power (`int` 1, 2, or 3). `name` - Optional name for this height interpolator (`str`). Raises: `HeightError` - Insufficient number of `knots` or an invalid `knot` or `beta`. Overrides: object.__init__

### height (self, lats, lons) |
Interpolate the height for one or several lat-/longitudes. Arguments: `lats` - Latitude or latitudes (`degrees` or `degrees`s). `lons` - Longitude or longitudes (`degrees` or `degrees`s). Returns: A single interpolated height (`float`) or a list of interpolated heights (`float`s). Raises: `HeightError` - Insufficient or non-matching number of `lats` and `lons` or an fidw issue. Overrides: _HeightIDW.height