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