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.

seismology.estimate_numax() does not return accurate numax values for low numax red giants.

See original GitHub issue

I am trying to use the lightkurve numax_estimate() to get initial numax values for red giants, but the results for stars with low numax values seem to be wrong. I have included a MWE of a targeted nominal Kepler red giant where this problem occurs below.

from lightkurve import KeplerCBVCorrector
import lightkurve as lk
import numpy as np
import matplotlib.pyplot as plt

lcc = lk.search_lightcurvefile('KIC 2437444').download_all()
lcall = lcc.stitch()
ps = lcall.remove_nans().to_periodogram(freq_unit='microHertz',oversample_factor=5)
sn = ps.flatten()
seis = sn.to_seismology()
seis.estimate_numax()

This should return a numax value of approx. 21 microHertz but the result is instead 13.5 microHertz.

  • platform (Linux):
  • lightkurve version (1.9.1):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
barentsencommented, May 21, 2020

Thanks for helping out @astrobatty !! 👍

@ojhall94 @danhey Do you think we need to revise the defaults here, or do you think this issue can be closed?

2reactions
astrobattycommented, May 12, 2020

You can find the answer in the doc:

A window of fixed width (either given by the user, 25 microhertz for Red Giants or 250 microhertz for Main Sequence stars) is moved along the power spectrum, where the central frequency of the window moves in steps of 1 microhertz (or given by the user as spacing) and evaluates the autocorrelation at each step.

As you do not provide any specific window length and/or step, the default values are used. In your case the autocorrelation function (ACF), from which the numax is estimated, is calculated with a window length of 25 uHz. As your expected numax is less than 25 uHz, you simply oversmooth the PSD.

Solution

Change this line seis.estimate_numax() to this seis.estimate_numax(window_width=5, spacing=0.1).

You can compare the ACFs using seis.diagnose_numax();. Plot the results using the default and new values to see the problem here.

Request

Maybe a warning to change window_width/spacing would be great if estimated numax is low.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accurate red giant distances and radii with asteroseismology
pipeline, an automated asteroseismology pipeline that returns oscillation ... brightness variations due to red giant solar-like oscillations is not possible ...
Read more >
[2107.05831] TESS asteroseismology of the Kepler red giants
Red giant asteroseismology can provide valuable information for studying the Galaxy as demonstrated by space missions like CoRoT and Kepler.
Read more >
Red Giant Seismology
The role of Red Giants in Astrophysics. Age of stars. Sensitive to stellar physics. Red Giants in detached Eclipsing Binary systems. Accurate stellar ......
Read more >
Unveiling the Structure and Dynamics of Red Giants With ...
Red -giant stars mark that stage of stellar evolution when a star has exhausted its central hydrogen, fusion occurs in a very thin...
Read more >
Evidence of structural discontinuities in the inner core of red ...
Red giants are stars in the late stages of stellar evolution. Because they have exhausted the supply of hydrogen in their core, ...
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