Giter Site home page Giter Site logo

syc20020618 / lcsim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skiehl/lcsim

0.0 0.0 0.0 2.18 MB

Blazar light curve simulation package in python3

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

Python 6.08% HTML 17.74% Jupyter Notebook 76.18%

lcsim's Introduction

ascl:2310.002

lcsim

A python3 package to create artificial blazar light curves with a predefined power spectral density (PSD) and probability density function (PDF).

Requirements

The lcsim script uses the following standard python packages:

  • copy
  • math

The lcsim script uses the following python packages:

  • numpy
  • scipy
  • statsmodels

The simdb script uses the following standard python packages:

  • os
  • sys

The simdb script uses the following python packages:

  • numpy
  • sqlite3

Getting Started

Get the python scripts:

$ git clone https://github.com/skiehl/lcsim.git

Open the jupyter notebook SimulationDemo.ipynb for a demonstation of the code. Either use jupyter lab:

$ jupyter lab

Or jupyter notebook:

$ jupyter notebook SimulationDemo.ipynb

Modules

  • lcsim.py: The main module for simulating light curves.
  • simdb.py: A SQLite3-based database backend to store simulations.
  • run_lcsim.py: A wrapper script to run and save light curve simulations for multiple sources.

Usage

Usage of the package is demonstrated in the jupyter notebook SimulationDemo.ipynb

Note: Documentation of the simdb.py module is not yet included.

A complete code documentation is given in html/.

Citation

Bibtex:

@MISC{2023ascl.soft10002K,
       author = {{Kiehlmann}, Sebastian},
        title = "{lcsim: Light curve simulation code}",
     keywords = {Software},
 howpublished = {Astrophysics Source Code Library, record ascl:2310.002},
         year = 2023,
        month = oct,
          eid = {ascl:2310.002},
        pages = {ascl:2310.002},
archivePrefix = {ascl},
       eprint = {2310.002},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2023ascl.soft10002K},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

This software package is indexed on ASCL and ADS.

License

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

References

Timmer&Koenig, 1995. Emmanoulopoulos et al., 2013.

Alternatives

At least on other python implementations of the Emmanoulopoulos+ method is available:

lcsim's People

Contributors

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