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’s SHGT at the grid points.

Returns:

Heights above the ground [m], heights * scale(terrain), of shape terrain.shape + heights.shape: the last axis is the level.

Return type:

NDArray[double]

See also

scale

The 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.  ]])