Skeleton¶
- class synthesizAR.Skeleton(loops)[source]¶
Bases:
object
Construct magnetic field skeleton fieldlines
Examples
>>> import synthesizAR >>> import astropy.units as u >>> loop = synthesizAR.Loop('loop', SkyCoord(x=[1,4]*u.Mm, y=[2,5]*u.Mm, z=[3,6]*u.Mm,frame='heliographic_stonyhurst', representation_type='cartesian'), [1e2,1e3] * u.G) >>> field = synthesizAR.Skeleton([loop,])
Attributes Summary
Coordinates for all loops in the skeleton.
Coordinates for all grid cell centers of all loops in the skeleton
Cross-sectional areas for all loops concatenated together.
Widths for all loops concatenated together
Methods Summary
configure_loop_simulations
(interface, **kwargs)Configure hydrodynamic simulations for each loop object
from_asdf
(filename)Restore a
Skeleton
instance from an ASDF filefrom_coordinates
(coordinates[, field_strengths])Construct
Skeleton
from list of coordinates and field strengthsload_ionization_fractions
(emission_model[, ...])Load the ionization fractions for each ion in the emission model.
load_loop_simulations
(interface[, filename])Load in loop parameters from hydrodynamic results.
peek
(**kwargs)Plot loop coordinates on the solar disk.
refine_loop
(loop, delta_s, **kwargs)refine_loops
(delta_s, **kwargs)Interpolate loop coordinates and field strengths to a specified spatial resolution and return a new
Skeleton
object.to_asdf
(filename)Serialize this instance of
Skeleton
to an ASDF fileAttributes Documentation
- all_coordinates¶
Coordinates for all loops in the skeleton.
Note
This should be treated as a collection of points and NOT a continuous structure.
- all_coordinates_centers¶
Coordinates for all grid cell centers of all loops in the skeleton
Note
This should be treated as a collection of points and NOT a continuous structure.
- all_cross_sectional_areas¶
Cross-sectional areas for all loops concatenated together.
Note
These are the cross-sectional areas evaluated at the center of the loop.
- all_widths¶
Widths for all loops concatenated together
Methods Documentation
- configure_loop_simulations(interface, **kwargs)[source]¶
Configure hydrodynamic simulations for each loop object
- classmethod from_asdf(filename)[source]¶
Restore a
Skeleton
instance from an ASDF fileExamples
>>> import synthesizAR >>> restored_field = synthesizAR.Skeleton.from_asdf('/path/to/skeleton.asdf')
- classmethod from_coordinates(coordinates, field_strengths=None, **kwargs)[source]¶
Construct
Skeleton
from list of coordinates and field strengths
- load_ionization_fractions(emission_model, interface=None, **kwargs)[source]¶
Load the ionization fractions for each ion in the emission model.
- Parameters:
emission_model (
synthesizAR.atomic.EmissionModel
) –interface (optional) – A model interface. Only necessary if loading the ionization fractions from the model
fraction (If the model interface provides a method for loading the population) –
model (from the) –
Otherwise (use that to get the population fractions.) –
compute –
after (the ion population fractions in equilibrium. This should be done) –
load_loop_simulations. (calling) –
- load_loop_simulations(interface, filename=None, **kwargs)[source]¶
Load in loop parameters from hydrodynamic results.
- refine_loops(delta_s: Unit('cm'), **kwargs)[source]¶
Interpolate loop coordinates and field strengths to a specified spatial resolution and return a new
Skeleton
object.This can be important in order to ensure that an adequate number of points are used to represent each fieldline when binning intensities onto the instrument grid.