flasc.utilities.floris_tools.get_turbs_in_radius

flasc.utilities.floris_tools.get_turbs_in_radius#

flasc.utilities.floris_tools.get_turbs_in_radius(x_turbs, y_turbs, turb_no, max_radius, include_itself, sort_by_distance=False)[source]#

Find turbines within a certain radius of a turbine.

Determine which turbines are within a certain radius of other wind turbines.

Parameters:
  • x_turbs ([list, array]) -- Long. locations of turbines

  • y_turbs ([list, array]) -- Lat. locations of turbines

  • turb_no (int) -- Turbine number for which the distance is

  • turbines. (calculated w.r.t. the other)

  • max_radius (float) -- Maximum distance between turbines to be

  • [turb_no]. (considered within the radius of turbine)

  • include_itself (bool) -- Include itself in the list of turbines

  • radius. (within the)

  • sort_by_distance (bool, optional) -- Sort the output list of turbines

  • turbine (according to distance to the)

  • (but (from closest to furthest)

  • False. (still within radius). Defaults to)

Returns:

List of turbines that are within the prespecified distance from turbine [turb_no].

Return type:

list