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

Class HeightIDWequirectangular

  object --+            
           |            
named._Named --+        
               |        
     _HeightBase --+    
                   |    
          _HeightIDW --+
                       |
                      HeightIDWequirectangular
Known Subclasses:

Height interpolator using Inverse Distance Weighting (IDW) and the angular distance in radians squared like function pygeodesy.equirectangular_.


See Also: HeightIDWeuclidean, HeightIDWflatPolar, 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, wrap=False, name='')
New HeightIDWequirectangular 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: _DOT_, __repr__, __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 _HeightIDW: beta

Inherited from _HeightBase: adjust, datum, kmin, numpy, scipy, scipy_interpolate, wrap

Inherited from named._Named: classname, classnaming, name, named, named2, named3, named4

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 LatLons).
Returns:
A single interpolated height (float) or a list or tuple of interpolated heights (floats).
Raises:
Overrides: _HeightBase.__call__

__init__ (self, knots, adjust=True, wrap=False, name='')
(Constructor)

 

New HeightIDWequirectangular interpolator.

Arguments:
  • knots - The points with known height (LatLons).
  • adjust - Adjust the wrapped, unrolled longitudinal delta by the cosine of the mean latitude (bool).
  • wrap - Wrap and pygeodesy.unrollPI longitudes (bool).
  • name - Optional name for this height interpolator (str).
Raises:
  • HeightError - Insufficient number of knots or an invalid knot.
Overrides: object.__init__

height (self, lats, lons)

 

Interpolate the height for one or several lat-/longitudes.

Arguments:
  • lats - Latitude or latitudes (degrees or degreess).
  • lons - Longitude or longitudes (degrees or degreess).
Returns:
A single interpolated height (float) or a list of interpolated heights (floats).
Raises:
Overrides: _HeightIDW.height