set_latitudes

set_latitudes(gpt, latitudes)

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

Parameters
  • gpt (Geopoints) – input geopoints

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

Return type

Geopoints

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