def interdecile_range(x):
    '\n    Get range between bottom 10% and top 10% of values.\n\n    This is from the Longley-Rice Irregular Terrain Model.\n\n    Code here: https://github.com/edwardoughton/itmlogic\n    Paper here: https://joss.theoj.org/papers/10.21105/joss.02266.pdf\n\n    Parameters\n    ----------\n    x : list\n        Terrain profile values.\n\n    Returns\n    -------\n    interdecile_range : int\n        The terrain irregularity parameter.\n\n    '
    (q90, q10) = np.percentile(x, [90, 10])
    interdecile_range = int(round((q90 - q10), 0))
    return interdecile_range
Get range between bottom 10% and top 10% of values.

This is from the Longley-Rice Irregular Terrain Model.

Code here: https://github.com/edwardoughton/itmlogic
Paper here: https://joss.theoj.org/papers/10.21105/joss.02266.pdf

Parameters
----------
x : list
    Terrain profile values.

Returns
-------
interdecile_range : int
    The terrain irregularity parameter.
def interdecile_range(x):
    '\n    Get range between bottom 10% and top 10% of values.\n\n    This is from the Longley-Rice Irregular Terrain Model.\n\n    Code here: https://github.com/edwardoughton/itmlogic\n    Paper here: https://joss.theoj.org/papers/10.21105/joss.02266.pdf\n\n    Parameters\n    ----------\n    x : list\n        Terrain profile values.\n\n    Returns\n    -------\n    interdecile_range : int\n        The terrain irregularity parameter.\n\n    '
    (q90, q10) = np.percentile(x, [90, 10])
    interdecile_range = int(round((q90 - q10), 0))
    return interdecile_range