Additions to `Lightcurve` class
See original GitHub issueWe 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:
- Created 7 years ago
- Comments:22 (16 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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@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.