| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
_abcoll.Sized --+
|
object --+ |
| |
_abcoll.Iterable --+
|
object --+ |
| |
_abcoll.Container --+
|
_abcoll.Sequence --+
|
_Basequence --+
|
Numpy2LatLon
Wrapper for NumPy arrays as "on-the-fly" LatLon points.
| Nested Classes | |
|
Inherited from |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| integer |
|
||
|
|||
|
|||
| integer |
|
||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Methods | |
|
Inherited from |
| Class Variables | |
__abstractmethods__ =
|
|
| Properties | |
|
ilat Get the latitudes column index (integer). |
|
|
ilon Get the longitudes column index (integer). |
|
|
isNumpy2 Is this a Numpy2 wrapper? |
|
|
shape Get the shape of the NumPy array (2-tuple). |
|
|
Inherited from |
|
| Method Details |
Handle a NumPy array as simplify...-compatible LatLon points.
Example: >>> type(array) <type 'numpy.ndarray'> # <class ...> in Python 3+ >>> points = Numpy2LatLon(array, lat=0, lon=1) >>> simply = simplifyRDP(points, ...) >>> type(simply) <type 'numpy.ndarray'> # <class ...> in Python 3+ >>> sliced = points[1:-1] >>> type(sliced) <class '...Numpy2LatLon'> |
Check for a specific lat-/longitude.
|
Return row[index] as LatLon or return a Numpy2LatLon slice.
|
Yield rows as LatLon.
|
Return the number of rows.
|
Return a string representation.
|
Yield rows as LatLon in reverse order.
|
Return a string representation.
|
Count the number of rows with a specific lat-/longitude.
|
Find the first row with a specific lat-/longitude.
|
Yield indices of all rows with a specific lat-/longitude.
|
Find index of the first row with a specific lat-/longitude.
|
Instantiate a point LatLon.
|
Find the last row with a specific lat-/longitude.
Note: Keyword order, first stop, then start. |
Return a subset of the NumPy array.
Note: A subset is different from a slice in 2 ways: (a) the subset is typically specified as a list of (un-)ordered indices and (b) the subset allocates a new, separate NumPy array while a slice is just an other view of the original NumPy array. |
| Property Details |
ilatGet the latitudes column index (integer).
|
ilonGet the longitudes column index (integer).
|
isNumpy2Is this a Numpy2 wrapper?
|
shapeGet the shape of the NumPy array (2-tuple).
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Aug 14 12:44:27 2017 | http://epydoc.sourceforge.net |