set_longitudes
- set_longitudes(gpt, longitudes)
Creates a new
Geopoints
with all the longitudes ingpt
replaced bylongitudes
.- Parameters
gpt (
Geopoints
) – input geopointslongitudes (number or list or ndarray) – longitudes to be written into
gpt
- Return type
If
longitudes
is a number all the longitudes are replaced with it. Iflongitudes
is a list or ndarray and is shorter than the geopoints count then only the first values that have a corresponding value inlongitudes
are changed.