GithubHelp home page GithubHelp logo

skiehl / polarizationtools Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 77 KB

Tools to deal with astrophysical polarization data in python3

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

Python 25.10% HTML 74.90%
astrophysics blazar polarization randomwalk stochastic-processes stokes-parameters time-series-analysis evpa evpa-rotation

polarizationtools's Introduction

polarizationtools

Python3 tools to deal with astrophysical polarization data.

Modules

  • evpatools.py Tools to analyze EVPA time series data.
  • misc.py Miscellaneous tools.
  • randomwalk.py Simulate random walks in the Stokes Q-U plane.
  • stokesconversion.py Convert Stokes parameters into linear polarization parameters and vice versa.

Module details

  • evpatools.py
    • EVPAanalyzer class:
      • Shift EVPA data points to account for the 180 degrees ambiguity, following [1].
      • Identify rotations according to the definitions of [4] or [1].
  • misc.py
    • debias_pol function: Debias the fractional linear polarization, following [2].
  • randomwalk.py
    • RWsim class: Simulate random walks in the Stokes Q-U plane, following [1].
  • stokesconversion.py
    • StokesConversion class: Convert Stokes parameters into linear polarization parameters with proper treatment of the uncertainties as explained in [3].
    • StokesConversionSimple class: Convert Stokes parameters into linear polarization parameters and vice versa with simple Gaussian error propagation.

Citation

Bibtex:

@software{2024ascl.soft02006K,
       author = {{Kiehlmann}, Sebastian},
        title = "{polarizationtools: Polarization analysis and simulation tools in python}",
 howpublished = {Astrophysics Source Code Library, record ascl:2402.006},
         year = 2024,
        month = feb,
          eid = {ascl:2402.006},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2024ascl.soft02006K},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

This software package is indexed on ASCL and ADS.

License

polarizationtools is licensed under the BSD 3-Clause License - see the LICENSE file.

References

  1. Kiehlmann et al, 2016
  2. Pavlidou et al, 2014
  3. Blinov et al, 2021
  4. Blinov et al, 2015

polarizationtools's People

Contributors

skiehl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

syc20020618

polarizationtools's Issues

Absolute threshold in smooth rotation identification broken?

I am not absolutely certain that the absolute threshold is implemented correctly in evpatools.EVPAanalyzer._identify_rot_smooth(). This needs some checks.
It is implemented and can be used. The user is warned that the results may not be correct.

Add MCoR adjustment

Implement _adjust_mcor() method in evpatools.EVPAanalyzer. A placeholder method already exists.

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.