def estimate_terrain_deciles(grid):
    '\n\n    '
    terrain_lookup = grid
    terrain_lookup['decile'] = pd.qcut(terrain_lookup['id_range_m'], 10, labels=False)
    terrain_lookup = terrain_lookup[['decile', 'id_range_m']]
    terrain_lookup = terrain_lookup.groupby(['decile']).min()
    terrain_lookup = terrain_lookup['id_range_m'].to_list()
    return terrain_lookup
def estimate_terrain_deciles(grid):
    '\n\n    '
    terrain_lookup = grid
    terrain_lookup['decile'] = pd.qcut(terrain_lookup['id_range_m'], 10, labels=False)
    terrain_lookup = terrain_lookup[['decile', 'id_range_m']]
    terrain_lookup = terrain_lookup.groupby(['decile']).min()
    terrain_lookup = terrain_lookup['id_range_m'].to_list()
    return terrain_lookup