StingraySoftware / stingray

Anything can happen in the next half hour (including spectral timing made easy)!
https://stingray.science/stingray
MIT License
172 stars 141 forks source link

Multiband Support in stingray #836

Open pupperemeritus opened 1 month ago

pupperemeritus commented 1 month ago

I was browsing astropy today and came across a multiband version of the Lomb Scargle periodogram. I was wondering if Stingray could use multiband functionality in not just the Lomb-Scargle periodogram but other algorithms as well. Was thinking of implementing it by maybe creating a general class that can use any existing Stingray class to support multiband, and using new data handling classes to handle it.

Would it be worthwhile implementing it in the context and requirements of Stingray?

matteobachetti commented 1 month ago

@pupperemeritus definitely. We have some methods that already rely on multiple energy ranges (VarEnergySpectrum children basically), and StingrayTimeseries can handle multiple measurements for each time stamp. Having periodogram methods understand multiple time series might be useful indeed

pupperemeritus commented 4 weeks ago

I'll try working on it. I'll update the details of the design as I experiment.