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

Class HeightLSQBiSpline

  object --+        
           |        
named._Named --+    
               |    
     _HeightBase --+
                   |
                  HeightLSQBiSpline

Height interpolator using SciPy LSQSphereBivariateSpline.

Instance Methods
 
__init__(self, knots, weight=None, name='')
New HeightLSQBiSpline 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 named._Named: __imatmul__, __matmul__, __repr__, __rmatmul__, __str__, attrs, classof, copy, dup, methodname, rename, toRepr, toStr, toStr2

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

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

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

Inherited from object: __class__

Method Details

__init__ (self, knots, weight=None, name='')
(Constructor)

 

New HeightLSQBiSpline interpolator.

Arguments:
  • knots - The points with known height (LatLons).
  • weight - Optional weight or weights for each knot (scalar or scalars).
  • name - Optional name for this height interpolator (str).
Raises:
  • HeightError - Insufficient number of knots or an invalid knot or weight.
  • LenError - Unequal number of knots and weights.
  • ImportError - Package numpy or scipy not found or not installed.
  • SciPyError - A scipy LSQSphereBivariateSpline issue.
  • SciPyWarning - A scipy LSQSphereBivariateSpline warning as exception.
Overrides: object.__init__

__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:
  • HeightError - Insufficient number of llis or an invalid lli.
  • SciPyError - A scipy LSQSphereBivariateSpline issue.
  • SciPyWarning - A scipy LSQSphereBivariateSpline warning as exception.
Overrides: _HeightBase.__call__

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:
  • HeightError - Insufficient or non-matching number of lats and lons.
  • SciPyError - A scipy LSQSphereBivariateSpline issue.
  • SciPyWarning - A scipy LSQSphereBivariateSpline warning as exception.