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

# Class HeightIDW3

     object --+
              |
    _HeightBase --+
                  |
         _HeightIDW --+
                      |
                     HeightIDW3

Height interpolator using Inverse Distance Weighting (IDW) and the angular `Haversine` distance from function haversine_.

See Also: HeightIDW, HeightIDW2, Inverse distance weighting, IDW and SHEPARD_INTERP_2D..

Instance Methods
__init__(self, knots, beta=2, wrap=False) New HeightIDW3 interpolator. |
__call__(self, *llis) Interpolate the height for one or several locations. |
height(self, lats, lons) Interpolate the height for one or several lat-/longitudes. |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, knots, beta=2, wrap=False) (Constructor) |
New HeightIDW3 interpolator. Parameters: `knots` - The points with known height (`LatLon`s). `beta` - Inverse distance power (`int` 1, 2, or 3). `wrap` - Wrap and unroll180 longitudes (`bool`). Raises: `HeightError` - Insufficient number of knots or invalid knot or beta. Overrides: object.__init__

### __call__(self, *llis) (Call operator) |
Interpolate the height for one or several locations. Parameters: `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 or invalid lli. Overrides: _HeightBase.__call__

### height(self, lats, lons) |
Interpolate the height for one or several lat-/longitudes. Parameters: `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. Overrides: _HeightIDW.height