Coronal model interface.
More...
|
def | compute_field |
| Computes magnetic field lines associated to seed_points at surface rss up to solar surface with a given magnetogram located at magmappath. More...
|
|
def | write_output |
|
def interface_corona.compute_field |
( |
|
model, |
|
|
|
seed_points |
|
) |
| |
Computes magnetic field lines associated to seed_points at surface rss up to solar surface with a given magnetogram located at magmappath.
- Parameters
-
model | Model used. One of interface_corona.info |
seed_points | List of Coordinate of seed points at surface rss. |
- Returns
- Returns a list fieldlines with as many elements as seed_points + path to datacube
- Todo:
Return Bfield at rss (no need for the entire datacube, only for HCS plotting).
Add method for 3Dcube reading + fieldline computing (model_datacube2fieldline).
def interface_corona.write_output |
( |
|
time_pfss_min, |
|
|
|
time_pfss_max, |
|
|
|
crss_min, |
|
|
|
crss_max, |
|
|
|
rss, |
|
|
|
fieldline_min, |
|
|
|
fieldline_max |
|
) |
| |
Write report in dir.output/output_pfss_min/max about computed coronal fieldlines.
Usefull for SolarSoft comparison.
Format is:
iline utc
#seed point r lat lon
r(seed) lat(seed) lon(seed)
#line r lat lon
...
i r(i) theta(i) phi(i)
...
Initial value:
2 'model': [
'PFSS',
'MFM'],
List of available model for coronal reconstruction.