Skip to main content

Determine the interstellar extinction for observed stars

Project description


Build Status Code PyPI version License

This package allows to determine the interstellar extinction for stars lying on the color-color plane. Using:

  1. theoretical stars sequence
  2. reddening line slope
  3. 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 unred

or alternatively:

$ git clone
$ cd unredden-stars
$ sudo python3 install


At the beginning call the script from the terminal window with the -h option:

$ -h

This 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:

$ example_data/stars.dat example_data/ub_bv_dwarfs.dat 0.72 3.1

Moreover, you can filter the output (by extinction value for each star) using --min or --max option:

$ example_data/stars.dat example_data/ub_bv_dwarfs.dat 0.72 3.1 --min

I 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unred, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size unred-0.1.2-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size unred-0.1.2.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page