coordinate_methods.select_closest_location_ID#
- coordinate_methods.select_closest_location_ID(coordinate: tuple[float, float], SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any]) int#
Given a coordinate, the closest location ID is returned.
The Euclidian distance is used.
- Parameters:
coordinate (tuple[float, float]) – A tuple containing the x and y coordinates.
SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter
PRINTis at least necessary. Seemain.pyfor parameter explanations.SIMULATION_DATA (dict[str, Any]) – The simulation data.
NODES_REGIONis at least necessary. Seemain.pyand the input data section on the ELASPY website for explanations.
- Returns:
location_ID (int) – The closest location ID.