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 (list of greensfield.models.Fieldline) – Fieldlines traced through field extrapolation to iterate over

  • coordinate (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, width must be specified to define the loop width.

  • wcs (WCS) – The WCS of the image from which coordinate was 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 that coordinate defines 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:

list of greensfield.models.Fieldline