map2loop.interpolators.generate_grid#
- map2loop.interpolators.generate_grid(bounding_box: dict, grid_resolution: int | None = None) tuple #
Setup the grid for interpolation
- Parameters:
bounding_box (dict) –
a dictionary containing the bounding box of the map data. The bounding box dictionary should comply with the following format: {
”minx”: value, “maxx”: value, “miny”: value, “maxy”: value,
}
grid_resolution (int, optional) – The number of grid points in the x and y directions. Defaults to None.
- Returns:
xi, yi (numpy.ndarray, numpy.ndarray) – The x and y coordinates of the grid points. grid_resolution (int): The number of grid points in the x and y directions.