question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Additions to `Lightcurve` class

See original GitHub issue

We had a very informative discussion at the Python in Astronomy meeting today, and one thing that came up was the functionality of the Lightcurve class. I think some of these things currently live in pull requests, but I’m adding them here for completeness.

  • Rebin (including recalculating uncertainties)
  • Time index column both middle of bin and bin edges
  • Time shifting/frame conversion (is there a WCS standard for time?)
  • Sort itself
  • Truncate
  • concatenate (add two together)
  • Interpolate to new time stamps
  • add/subtract light curves from one another
  • Metadata (need to keep some information about energy ranges etc)
  • Regions of interest (in the light curve) or masks?
  • Values need units and uncertainties
  • Plot itself
  • Support for variable time bin sizes
  • optional attribute or method for sky background

All of these are open for discussion.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
nithinsingh61commented, Mar 23, 2016

They surely don’t belong to Lightcurve class , but we shouldn’t be limiting ourselves to linear or spline interpolation . fitting function ( numpy.polyfit , scipy.optimize.curve_fit ) can serve our purpose @dhuppenkothen

1reaction
dhuppenkothencommented, Mar 23, 2016

@usmanwardag @nithinsingh61 Predicting time steps outside the start/end times of the time series would be technically extremely challenging, and again depend very strongly on the astrophysical source observed to create the time series. I’d probably not try to implement this here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lightkurve.LightCurve
Compared to the generic TimeSeries class, LightCurve ensures that each object has time , flux , and flux_err columns. These three columns are...
Read more >
Creating a light curve — stingray v1.1.2.dev8+gdfd899c
Addition /Subtraction¶. Two light curves can be summed up or subtracted from each other if they have same time arrays. [27]:.
Read more >
Lightcurve Construction - Palomar Transient Factory - Caltech
Lightcurves are constructed using the IPAC source-matching/relative-photometry pipeline on intervals of typically two months using all the calibrated epochal ...
Read more >
FlareLightCurve — AltaiPony 2.0.0 documentation
Flare light curve class that unifies properties of K2SC -de-trended and Kepler's ... add_row ([vals, mask]), Add a new row to the end...
Read more >
stingray/lightcurve.py at main · StingraySoftware ... - GitHub
:class::class:`Lightcurve` is used to create light curves out of photon counting ... an operation of one light curve with another (e.g. add, subtract,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found