GithubHelp home page GithubHelp logo

johannes-sahlmann / pystrometry Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 4.0 3.24 MB

Package to support the analysis of high-precision astrometry timeseries, in particular the determination of Keplerian orbits.

License: BSD 3-Clause "New" or "Revised" License

Python 51.76% HTML 0.29% Jupyter Notebook 47.38% JavaScript 0.58%

pystrometry's Introduction

Build Status Documentation Status PyPI version PyPI - License DOI

pystrometry - Support for high-precision astrometry timeseries analysis

This code collection evolved over the last 10+ years and does therefore not always conform with coding standards and best practices, but it is installable via PyPI: pip install pystrometry.

pystrometry provides a variety of functionalities and has been used in several publications. It is under active development.

Example usages

  • Plotting the orbital motion with default parameters

      from pystrometry.pystrometry import OrbitSystem 
              
      orb = OrbitSystem()  # default parameters
      orb.plot_orbits()    
    

    More customised orbit plotting example from this notebook: 2_exoplanet_example_orbit.ipynb

  • Define the system parameters

      from collections import OrderedDict
      attribute_dict = OrderedDict([  ('RA_deg', 164.), 
                                      ('DE_deg', -21.),
                                      ('absolute_plx_mas', 27.), 
                                      ('Tp_day', 57678.4), 
                                      ('omega_deg', -23.),
                                      ('P_day', 687.), 
                                      ('ecc', 0.08), 
                                      ('OMEGA_deg', 114.),
                                      ('i_deg', 31.), 
                                      ('m1_MS', 0.9),
                                      ('m2_MJ', 3.)])
                                      
      orb = OrbitSystem(attribute_dict)
      orb.plot_orbits() 
    

    Compute the proper motion displacements in RA, Dec for the system:

      t_mjd = np.linspace(50000, 52000)
      delta_ra_star_mas, delta_dec_mas = orb.ppm(t_mjd)
    
  • Compute and plot the astrometric amplitudes of known exoplanets.
    The code is in this notebook: 1_exoplanet_signatures.ipynb

Example conda environment creation that allows for running the example notebooks

This requires a conda installation.

Create a dedicated environment (here named astrom) with the necessary dependencies:

conda create --name astrom --yes python=3.7 pandas=1.2.5 pip jupyterlab pyyaml uncertainties

Activate that environment:

conda activate astrom

Install pystrometry from PyPI:

pip install pystrometry

Open jupyter notebook, e.g.

jupyter notebook [path-to-downloaded-file]2_exoplanet_example_orbit.ipynb

Contributing

Please open a new issue or new pull request for bugs, feedback, or new features you would like to see. If there is an issue you would like to work on, please leave a comment and we will be happy to assist. New contributions and contributors are very welcome!

References

Citation

If you find this package useful, please consider citing the Zenodo record using the DOI badge above. Please find additional citation instructions in CITATION.

pystrometry's People

Contributors

johannes-sahlmann avatar nbauchet avatar ojustino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pystrometry's Issues

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.