set_levels
- set_levels(gpt, levels)
Creates a new
Geopointswith all the levels ingptreplaced bylevels.- Parameters
gpt (
Geopoints) – input geopointslevels (number or list or ndarray) – levels to be written into
gpt
- Return type
If
levelsis a number all the levels are replaced with it. Iflevelsis a list or ndarray and is shorter than the geopoints count then only the first values that have a corresponding value inlevelsare changed.