set_levels

set_levels(gpt, levels)

Creates a new Geopoints with all the levels in gpt replaced by levels.

Parameters
  • gpt (Geopoints) – input geopoints

  • levels (number or list or ndarray) – levels to be written into gpt

Return type

Geopoints

If levels is a number all the levels are replaced with it. If levels is a list or ndarray and is shorter than the geopoints count then only the first values that have a corresponding value in levels are changed.