momepy.limit_range#

momepy.limit_range(vals, rng)[source]#

Extract values within selected range.

Parameters:
valsnumpy.array

Values over which to extract a range.

rngtuple, list, optional (default None)

A two-element sequence containing floats between 0 and 100 (inclusive) that are the percentiles over which to compute the range. The order of the elements is not important.

Returns:
valsnumpy.array

The limited array.