find_nearest_skycomponent
- ska_sdp_func_python.sky_component.operations.find_nearest_skycomponent(home: ~astropy.coordinates.sky_coordinate.SkyCoord, comps) -> (<class 'ska_sdp_datamodels.sky_model.sky_model.SkyComponent'>, <class 'float'>)[source]
Find the nearest component to a given direction.
- Parameters:
home – Home direction
comps – List of SkyComponents
- Returns:
Index of the nearest SkyComponent