Git Product home page Git Product logo

bynary's Introduction

How to install Bynary on Kubuntu

Bynary is a python-based suite of modules that will allow you to connect and download binary stars from Gaia based on an algorithm from Kareem El Badry at Berkley. We have modified it slightly to make it more general, however you can add parameters as you like, or you can download the pre-processed catalogues.

Firstly we need a vitual environment so that any exiting python programs aren't disrupted by the modules for this program. Eg Bynary makes heavy use of matplotlib, if you use an earlier or later version in another module, that could create issues. By installing matplotlibin in our own virtual environment we avoid that issue.

You will need a subscription to the Gaia website to download data from ESA.

You will also need a Linux-based computer running a currently supported version of Linux with Python 3.8+. We are both using Kubuntu 20.04. It needs a solid state hard disk with about 20GB free and at least 16GB of memory, 32GB is better. One of us uses an i7 the other uses an i9x2. Both are adequate. The i9x2 is good. However, downloading stuff from Gaia still take an appreciable time, maybe several hours per download (to execute on Gaia and download).

How to install virtualenv:

Install pip3 first

We want pip3 for python3 modules and git to access github files

sudo apt-get install -y python3-venv
sudo apt-get install -y python3-pip
sudo apt-get install -y git libsdl2-dev
sudo apt-get install -y libwebkit2gtk-4.0-dev
#sudo apt-get install -y unixodbc
sudo apt-get install -y sqlite3
sudo apt-get install make gcc libgtk-3-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev

Let's make sure we have rust installed for astroquery. Only do this if you have problems.

# sudo apt-get install -y curl
# curl https://sh.rustup.rs -sSf | sh

Next download the source files from git and run install (enter user name and password from git if requested):

git clone https://github.com/SteveBz/Bynary.git <dir name>
cd <dir name>

Update binClient.conf with the name of your directory.

kate binClient.conf (or editor of your choice)
replace '/home/image/x-Stronomy' with you new directory
save and exit

Now create a virtual environment, enter it and run install.

python3 -m venv venv
. venv/bin/activate
. install.sh

To execute the application:

cd <dir name>
. venv/bin/activate
python3 wxBinary_v2_11.py

(NB to deactivate the virtual environment, if necessary):

deactivate

Now doubleclick and make sure you can read the details.

Import stars and star attributes from Gaia

This will take a long time depending on the spec of your PC. A 2020 PC should take a few hours. A 2015 laptop may take a few days, in fact after a week we gave up.

Use tab 1 of the application to download lists of stars and their attributes from Gaia (eg RA/DEC, Parallax, proper motion, magnitudes at different wavelengths, RUWE, binary probablility, mass and age calculated from the Gaia FLAME spectrometer etc etc etc).

This is stored on your local database in SQLite.

Import lists of binary pairs from Gaia

Use tab 2 of the application. This is also stored on your local datbase in a catalogue. You can create and download many catalogues according to different selection criteria.

Load to memory

Use tab 3 of the application to load a catalogue into memory. Bynary uses Pandas dataframes to speed up the processing af large amounts of data. Much processing takes place at dataframe level and not at item (star or binary pair) level.

Filter to clean up catalogues.

Use tab 4 of the application to apply various filters (eg signal to noise ratios) to your catalogue. You can quickly reduce a catalogue of several million pairs to a few hundred very clean pairs.

Remaining tabs

The remaining tabs allow you to create various plots and even more second order filters to obtain further information about the downloaded selection of binaries. The final tab links to Aladin Lite in Strasborg to view a specified, selected binary to validate assumptions. For instance, you can see if the stellar neighbourhood is clear and uninfluenced by other stars or is a busy area in the plane of the Milky Way or star cluster.

bynary's People

Contributors

stevebz avatar

Stargazers

 avatar

Watchers

 avatar

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.