DynamicalPowerspectrum on TESS light curve

Open
#688 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start at the DynamicalPowerspectrum entry point and inspect how segment_size and GTIs are interpreted, especially after lc.to_stingray() converts the TESS light curve. Reproduce the reported error with the two-sector, 70-day light curve and 3-day segments. Done means the behavior is corrected or the expected handling of the time units and GTIs is clearly established.

Written by the indexing model from the issue text.

Description

Hello,
I'm downloading a light curve from a TESS source with lightkurve, then use lc.to_stingray() to have it stingray format. My light curve is a 1 min, 70 days long ligth curve (from two sectors). When I try to build the dynamical power spectrum within Stingray with:

dps = stingray.DynamicalPowerspectrum(lc, segment_size=3)

I get the following error message:

No GTIs are equal to or longer than segment_size

the units of my time column are days, and I should have many 3-days segments. Any help is appreciated!.
thanks

Dominant language
Python
Stars
229
Forks
196
Avg merge
4d 12h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from StingraySoftware/stingray

All issues in StingraySoftware/stingray

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.