This package allows to determine the interstellar extinction for stars lying on the color-color plane. Using:
- theoretical stars sequence
- reddening line slope
- positions of stars
package functions calculate which part of the sequence the reddened stars come from. This allows to determine the color excess and hence the extinction of each star.
To install the package please type from the command line:
$ sudo pip3 install unredor alternatively:
$ git clone https://github.com/pbrus/unredden-stars
$ cd unredden-stars
$ sudo python3 setup.py installAt the beginning call the script from the terminal window with the -h option:
$ unred_stars.py -hThis will give you a description of available options. If you need to see the program in action immediately, you can use files from the example_data/ directory:
$ unred_stars.py example_data/stars.dat example_data/ub_bv_dwarfs.dat 0.72 3.1Moreover, you can filter the output (by extinction value for each star) using --min or --max option:
$ unred_stars.py example_data/stars.dat example_data/ub_bv_dwarfs.dat 0.72 3.1 --minI encourage to visit my website to see more detailed description of this program. The current link can be found on my GitHub profile.
Unredden-stars is licensed under the MIT license.
