Package pygeodesy :: Module simplify :: Class Numpy2points
[frames] | no frames]

Class Numpy2points

object --+
         |
        Numpy2points

Wrap NumPy arrays to "on-the-fly" LatLon points.

Instance Methods
 
__init__(self, array, lat=1, lon=0)
Handle NumPy array like simplify...-compatible points.
 
__getitem__(self, idx)
 
__len__(self)
 
subset(self, indices)
Return a sub-set of the NumPy array.

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

Properties
  lat
Return latitude column index.
  lon
Return longitude column index.
  shape
Return a sub-set of the NumPy array.

Inherited from object: __class__

Method Details

__init__(self, array, lat=1, lon=0)
(Constructor)

 

Handle NumPy array like simplify...-compatible points.

Parameters:
  • array - NumPy array [n,2+] (numpy.array).
  • lat - column index containing latitude values (integer).
  • lon - column index containing longitude values (integer).
Overrides: object.__init__

Property Details

lat

Return latitude column index.

Get Method:
lat(self) - Return latitude column index.

lon

Return longitude column index.

Get Method:
lon(self) - Return longitude column index.

shape

Return a sub-set of the NumPy array.

Get Method:
shape(self) - Return a sub-set of the NumPy array.