greensfield#

greensfield is a package for performing potential field extrapolations using Green’s function methods.

API Reference#

greensfield.algorithms#

Algorithms for field extrapolation

Functions#

oblique_schmidt(phi, boundary, delta, shape, ...)

Calculate scalar magnetic potential using the oblique Schmidt method [Sch64].

magnetic_field_current_free(phi, delta)

Compute vector magnetic field.

greensfield.models#

Models for field extrapolation

Classes#

Fieldline(coordinate, field_strength)

ExtrapolatorBase(magnetogram, tangent_coord, ...)

Extrapolate 3D magnetic field in a Cartesian box.

ObliqueSchmidtExtrapolator(magnetogram, ...)

Class Inheritance Diagram#

Inheritance diagram of greensfield.models.Fieldline, greensfield.models.ExtrapolatorBase, greensfield.models.ObliqueSchmidtExtrapolator

greensfield.util#

Utility functions for field extrapolations

Functions#

make_boundary_magnetogram(magnetogram, ...)

Reproject and crop magnetogram to bottom boundary of a Cartesian box.

get_coordinates_above_threshold(smap, threshold)

Return world coordinates of pixels above a threshold

find_fieldlines_intersecting_loop(...[, ...])

Find fieldlines that intersect a visually defined loop.

find_fieldlines_within_loop_footprint(...[, ...])

Find fieldlines whose footpoints fall within the footprint of a visually-defined loop.

Bibliography#

[Sak82]

Takashi Sakurai. Green's Function Methods for Potential Magnetic Fields. Solar Physics, 76:301–321, March 1982. URL: http://adsabs.harvard.edu/abs/1982SoPh...76..301S, doi:10.1007/BF00170988.

[Sch64] (1,2)

H. U. Schmidt. On the Observable Effects of Magnetic Energy Storage and Release Connected With Solar Flares. NASA Special Publication, 50:107, 1964. URL: http://adsabs.harvard.edu/abs/1964NASSP..50..107S.