arlmet.InternalLevels.scale#

InternalLevels.scale(terrain)[source]#

Return how much higher the levels are above terrain than above 0 m.

Parameters:

terrain (ArrayLike) – Ground heights above sea level [m], such as a file’s SHGT.

Returns:

(zmdl - terrain) / zmdl, the shape of terrain.

Return type:

NDArray[double]

See also

heights_at

The levels’ heights above that ground.

Examples

>>> import arlmet
>>> levels = arlmet.internal_levels("met.arl")
>>> levels.scale([0.0, 1250.0])
array([1.  , 0.95])