For a given magnetogram, compute magnetic field lines from Sun surface to source surface (2.5 Rs).
Download repository: ``` git clone https://gitlab.irap.omp.eu/motcor_models/CORFIELD_MOTCOR.git ```
Need:
In DEVEL/makefile, change (if needed) FC and FITSPATH variables. Go into DEVEL folder: ``` cd CORFIELD_MOTCOR/DEVEL make corfield Executable
corfield``` must be created in DEVEL.
Change dir.input/corfield_params.nml. A magnetogram must be present (same path as magmappath's parameter of config file). ``` ./corfield ```
All output files are in dir.output.
In DEVEL/makefile, change (if needed) variables F2PY_PATH, F2PY_INCLUDE, F2PY_SUFFIX. Then: ``` cd CORFIELD_MOTCOR/DEVEL make f2py ```
Usage of corfield wrapper in a python script: ``` import corfield ``` See f2py_example.py for an example.
``` doxygen DEVEL/dir.doc/Doxyfile or call_doxygen ``` Html outputs are in html/index.html.
Latex files are in latex/ folder. For creating the Latex equivalent of Html outputs run: ``` cd latex pdflatex refman.tex ```