arlmet.InternalLevels.heights_at#
- InternalLevels.heights_at(terrain)[source]#
Return the levels’ heights above the ground at each terrain.
- Parameters:
terrain (
ArrayLike) – Ground heights above sea level [m], such as a file’sSHGTat the grid points.- Returns:
Heights above the ground [m],
heights * scale(terrain), of shapeterrain.shape + heights.shape: the last axis is the level.- Return type:
See also
scaleThe factor applied to
heights.
Examples
>>> import arlmet >>> levels = arlmet.internal_levels("met.arl") >>> levels.heights_at([0.0, 1250.0])[:, :3] array([[ 10. , 75. , 200. ], [ 9.5 , 71.25, 190. ]])