set_times

set_times(gpt, times)

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

Parameters
  • gpt (Geopoints) – input geopoints

  • times (number or list/ndarray of numbers) – dates to be written into gpt

Return type

Geopoints

A time value has to specified as a number in the format of hhmm (without leading zeros).

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