find_fieldlines_intersecting_loop#
- greensfield.util.find_fieldlines_intersecting_loop(fieldlines, coordinate, wcs, width=None, intersection_tolerance=0.7)[source]#
Find fieldlines that intersect a visually defined loop.
- Parameters:
fieldlines (
listofgreensfield.models.Fieldline) – Fieldlines traced through field extrapolation to iterate overcoordinate (
SkyCoord) – The coordinate corresponding to the visually defined loop. This can either be a 1D path defining the “spine” of the loop or a closed path defining the shape of the loop. If the former,widthmust be specified to define the loop width.wcs (
WCS) – The WCS of the image from whichcoordinatewas derived.width (
float, optional) – The distance around which to buffer a 1D path to convert it to a polygon. Effectively the width, in pixel space, of the visually-defined loop. If None, it assumed thatcoordinatedefines the full polygon of the loop feature.intersection_tolerance (
float, optional) – Any fieldline that has an intersection with the loop polygon above this value will be treated as being comprised of the loop.
- Returns:
intersecting_fieldlines
- Return type: