Giter Club home page Giter Club logo

lightcurves's Introduction

lightcurves

This is the lightcurves repository. Check it out: Open In Colab
See here for scientific application of this code: https://pos.sissa.it/395/868

LC.py

Initialize a LightCurve object based on time, flux and flux_error. Study its Bayesian block representation (based on Scargle et al. 2013 https://ui.adsabs.harvard.edu/abs/2013arXiv1304.2818S/abstract ).
Characterize flares (start, peak, end time) with the HOP algorithm (following Meyer et al. 2019 https://ui.adsabs.harvard.edu/abs/2019ApJ...877...39M/abstract ). There are four different methods to define flares (baseline, half, flip, sharp) as illustrated in the Jupyter Notebook.

HOP.py

Initialize a Hopject to consider parameters of an individual flare.

LC_Set

Initialize a (large) sample of light curves to study the distribution of flare parameters whithin that sample.

Reference

If you use this code please cite:
Wagner, S. M., Burd, P., Dorner, D., et al. 2021, PoS, ICRC2021, 868 https://ui.adsabs.harvard.edu/abs/2022icrc.confE.868W/abstract

lightcurves's People

Contributors

bschleicher avatar pguenth avatar swagner-astro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lightcurves's Issues

AttributeError: 'LightCurve' object has no attribute 'get_hop_baseline'

Hii
I was just trying to get the peak positions by the hop_baseline method in the tutorial. I got the error for the command as given below

hops_bl = lc.get_hop_baseline()
print('HOP: [start, peak, end]')
print(hops_bl)
AttributeError Traceback (most recent call last)
Cell In[11], line 1
----> 1 hops_bl = lc.get_hop_baseline()
2 print('HOP: [start, peak, end]')
3 print(hops_bl)

AttributeError: 'LightCurve' object has no attribute 'get_hop_baseline'

Can anyone explain this why?

I have imported all the modules needed properly
Many thanks in advance

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.