slopes#
- class arte.types.slopes.Slopes(slopesx_compressed, slopesy_compressed, mask2d)#
Bases:
object‘ Class that represents a generic WFS slope frame
- Attributes:
- shape2d
Methods
from_2dmaps(mapX, mapY)Build a Slopes object from X/Y 2D maps or a series of X/Y 2D maps.
fromNumpyArray
mapX
mapY
numberOfSlopes
toNumpyArray
vector
vectorX
vectorY
- static fromNumpyArray(mapXAsMaskedNumpyArray, mapYAsMaskedNumpyArray)#
- static from_2dmaps(mapX, mapY)#
Build a Slopes object from X/Y 2D maps or a series of X/Y 2D maps. Both maps must be np.ma.MaskedArray objects. Masks for X and Y slopes must be identical.
- Parameters:
mapX (np.ma.MaskedArray) – 2D slope map
mapY (np.ma.MaskedArray) – 2D slope map
- Returns:
slopes – A new Slopes object. Valid slopes (as indicated by the mask) are copied into an internal array. No references to the input data are kept.
- Return type:
Slopes object
- mapX()#
- mapY()#
- numberOfSlopes()#
- property shape2d#
- toNumpyArray()#
- vector()#
- vectorX()#
- vectorY()#