from_pfsspy¶
- synthesizAR.util.from_pfsspy(fieldlines, n_min=0, obstime=None, length_min=<Quantity 20. Mm>, length_max=<Quantity 3000. Mm>, name_template=None, cross_sectional_area=None)[source]¶
Convert a
pfsspy.fieldline.FieldLines
structure into a list ofLoop
objects.- Parameters:
fieldlines (
pfsspy.fieldline.FieldLines
) –n_min (
int
, optional) – The minimum number of points required to keep a traced fieldline. This is often useful when trying to filter out very small or erroneous fieldlines.obstime (
astropy.time.Time
, optional) – The desired obstime of the coordinates. Use this if the coordinates need to be at a different obstime than that of the Carrington map they were traced from.length_min (
astropy.units.Quantity
, optional) – Minimum allowed loop length. All loops with length below this are excluded.length_max (
astropy.units.Quantity
, optional) – Maximum allowed loop length. All loops with length above this are excluded.name_template (
str
, optional) – Name template to use when building loops. Defaults to ‘loop_{:06d}’cross_sectional_area (
astropy.units.Quantity
, optional) – The cross-sectional area to assign to each loop.