set_longitudes

set_longitudes(gpt, longitudes)

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

Parameters
  • gpt (Geopoints) – input geopoints

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

Return type

Geopoints

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