xscape.utils.generate_points

xscape.utils.generate_points(n_points, lon_range, lat_range, time_range=None)

Randomly generates a series of points.

Parameters:
  • n_points (int) – The number of points to generate.

  • lon_range (tuple) – Lat. and lon. ranges defining the area in which to generate points.

  • lat_range (tuple) – Lat. and lon. ranges defining the area in which to generate points.

  • time_range (tuple of np.datetime64, optional) – Range of times to generate timestamps.

Returns:

points – A pandas DataFrame object with “lat” and “lon” columns containing the points as rows. If time_range is provided, contains an additional “time” column.

Return type:

pd.DataFrame