Relative FIP bias diagnostics using linear combinations of spectral lines
Project description
Relative FIP bias diagnostics using linear combinations of spectral lines
The fiplcr
Python package allows to perform FIP bias maps measurements on the
solar corona from UV intensity maps. It calculates an optimal linear combination
of the spectral lines in order to obtain an accurate FIP bias map.
The proof of concept for this module is published in
Zambrana Prado & Buchlin, 2019.
In order to apply the Linear Combination Ratio (LCR) method one must follow
4 steps:
- Selection of the spectral lines
- Computation of the contribution functions
- Determination of the optimal linear combinations
- Determination of the relative FIP bias from the observations
The 1st step must be done on a case by case basis taking into account the
lines available in your observation. We suggest you follow the criteria stated
in Sec. 3.3.1 of Zambrana Prado & Buchlin, 2019.
The 2nd step is done by the specline
module of the fiplcr
module.
The 3rd step corresponds to the linear_combination
module.
Finally the 4th step can be done using the fip_map
function.
Do not forget to define all required variables in the config.py
file in order
to perform all calculations.
Installation
fiplcr
uses ChiantiPy and the
Chianti database.
Before installing fiplcr
, follow the ChiantiPy installation
instructions.
In particular, make sure to set the $XUVTOP
environment variable in your
.bashrc
.
You can then install fiplcr
by running the following commands in your
terminal:
git clone https://git.ias.u-psud.fr/nzambran/fiplcr.git
pip install fiplcr/
(If you have limited permission, you can install it locally with pip install fiplcr/ --user
.)
The fiplcr
module is now installed on your system.
You can safely remove the fiplcr/
repository that was created.
Quick start examples
Exploring linear combinations and comparing them to a simple 2-line ratio
In order to check if your linear combinations are suited for relative FIP bias
determination, you can compare their performance to that of a simple two-line
ratio.
This can be done following the same method presented in Sec. 4 of
Zambrana Prado & Buchlin, 2019.
Using a DEM cube (stored in examples/em_example/em_example.npz) we will synthetize radiance maps for the selected spectral lines one wishes to test out. The test case consists in using uniform abundances to compute these radiance maps. The test is considered successful for a given FIP bias determination method if the output relative FIP bias mapis consistent with the input elemental abundance maps, both in uniformity and in value.
Putting yourself in the directory examples/em_example
you can run the em_test.py
file and you will retrieve two LinearComb objects:
- The variable
ll
, containing the lines you wish to test out with their corresponding synthetic radiance maps and the obtained relative FIP bias map. - The variable
ll_2_lines
, containing the lines for the simple two-line ratio with their corresponding synthetic radiance maps and the obtained relative FIP bias map.
The test has four main steps, detailed below:
- We derive a DEM cube from the AIA observation. This is for the sole purpose
of producing synthetic radiances, for which we have control over all parameters,
while the DEMs are representative of different real solar regions. - Using CHIANTI for the contribution functions and the derived DEMs, we calculate
the synthetic radiances. We assume different uniform abundances for different elements. - We determine the optimal linear combination coefficients for the LCR method, and the coefficients for the two-line ratio method we are comparing it to.
- We use these coefficients to retrieve the FIP bias in each pixel. If the selected lines are suitable for FIP bias determination, the retrieved FIP bias map should be uniform.
FULL DESCRIPTION OF EACH MODULE
Notes:
If you have trouble using matplotlib and ChiantiPy and you get this kind of error: "RuntimeError: LaTeX was not able to process the following string:" you will need to install an additional package by running
sudo apt install dvipng texlive-latex-extra texlive-fonts-recommended
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fiplcr-1.0.tar.gz
.
File metadata
- Download URL: fiplcr-1.0.tar.gz
- Upload date:
- Size: 30.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 498844c9ded2aac4ca368bf845ddfd6ab7a8c6cd3398c199670b94b1b1d868f8 |
|
MD5 | 05e1b3f600308f9b073e198bed3cfce3 |
|
BLAKE2b-256 | dca5a522889ec77108977fb97aa54275986ab091f6b0e2577d0f90576183c0a4 |
File details
Details for the file fiplcr-1.0-py3-none-any.whl
.
File metadata
- Download URL: fiplcr-1.0-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f88335e47a12b1ec30d58af2ceb1ace042d2bfcb082c09c5ad52f1b6900b2e6 |
|
MD5 | 3add0471311e46e2800b535d914bc6fe |
|
BLAKE2b-256 | 90d9471a788d1ef072d792e1239455606255648a5be12dab64bb2f0e5151239f |