Git Product home page Git Product logo

unredden-stars's Introduction

Unredden-stars

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.

unredden-stars

Installation

To install the package please type from the command line:

$ sudo pip3 install unred

or alternatively:

$ git clone https://github.com/pbrus/unredden-stars
$ cd unredden-stars
$ sudo python3 setup.py install

Usage

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

$ unred_stars.py -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:

$ unred_stars.py 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:

$ unred_stars.py 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.

License

Unredden-stars is licensed under the MIT license.

unredden-stars's People

Contributors

pbrus avatar

Watchers

 avatar  avatar

unredden-stars's Issues

TODO list

Is needed to:

  • handle the stars list with only one star
  • fix a case when division by zero occurs in slope_line function

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.