This page has command-line examples for different usage scenarios, including several customized single star applications as well as running an ensemble of stars using a single-line command.

We also tried to include examples demonstrating different signal-to-noise detections, including what to look for in each scenario.

Single star applications

For applications to single stars, we will start with a very easy, high signal-to-noise (SNR) example, followed by medium and low SNR examples as well as a null detection. These examples will not be as detailed as the quickstart example – our goal here is to provide pointers on what to look for in each case.

A diablo detection

KIC 11618103 is our most evolved example, an RGB star with numax of \(\rm \sim 100 \mu Hz\). We will now admit that while the default settings work for most stars, some of the defaults could/should (or even in some cases need) to be changed for more evolved stars like this example.

It doesn’t necessarily mean that it will get the answers wrong, but we will take you through a few different runs and change some of the settings with each run.

Run 1:

If we run it straight “out-of-the-box” with our usual command:

pysyd run --star 11618103 -dv
KIC 11618103 estimates KIC 11618103 global fit

The autocorrelation function (or ACF) in panel 6 looks very smooth - I’d say almost a little too smooth. In fact if you look at the panel directly to the left under “Bg-corrected PS”, the power spectrum also looks a little strange, right?

This is because our smoothing filter (or box filter) has a default value of \(2.5 \mu Hz\), which is quite high for this star. Typically a common value is \(1.0 \mu Hz\), if at all, but usually much much less than our expected numax.

Run 2:

So for our first change, we are going to tone down the “smoothing” by setting it to zero i.e. not smoothing it at all. We can see how that will affect the calculated ACF (again, panels 5+6).

pysyd run --star 11618103 -dv --sp 0.0

Since we are not changing anything from the first part, we will leave out the first plot for brevity.

KIC 11618103 global fit

As you can see above, the bg-corrected power spectrum and ACF both look more reasonable now – it didn’t change the quality of the fit or our answer but it definitely looks better.

Now if you look at the echelle diagram (panel 8), it almost looks like we aren’t capturing all oscillation modes – our ridges look cut off so let’s plot more bins on the y axis.

Run 3:

We’ve tried to make the commands as obvious as possible to make it easier to digest. For example, here we are changing the number of bins on the y axis (or –noy–noy) of the echelle diagram, which is currently equal to 5 (also corresponds to 5 radial orders).

Let’s change it to something higher.

pysyd run --star 11618103 -dv --sp 0.0 --noy 9+0

You’ll see that we provided a keyword argument with a length of 3. The first digit is the number of bins (or radial orders) to plot and the next two digits provide the ability to shift the entire plot up/down by n orders as well! If 0 is provided as the second part of this value, it will center it on our expected numax. FWIW: –noy 9-0 would plot exactly the same thing.

KIC 11618103 global fit

This looks a lot better and it looks like we are capturing all features in the new y-axis range. Turns out we can also change the number of bins (or bin resolution) on the x axis of the echelle diagram as well.

Run 4:

Using basic logic, you can deduce that the relevant keyword argument here is indeed –nox. However, the number of bins on the x axis is more arbitrary here and depends on a couple different things, primarily the spacing (or \(\Delta\nu\)) and the frequency resolution of the power spectrum.

Since changing the number of bins using –nox is somewhat arbitrary – we’ve created an additional argument that calculates the number of points per bin or npb (–npb). Therefore this option uses information from both the spacing and the frequency resolution to estimate a more relevant number to use on the x axis.

pysyd run --star 11618103 -dv --sp 0.0 --noy 9+0 --npb 35
KIC 11618103 global fit

But this is just the tip of the iceberg – please see our complete list of available options!


A hot-to-fire detection

(yes, we are using taco bell sauces to quantify the signal-to-noise of these cases) `` `1 `

We used this example for new users just getting started and therefore we will only show the output and figures. Feel free to visit our crash course in asteroseismology, or crashteroseismology page, which breaks down every step in great detail.

KIC 1435467 estimates KIC 1435467 global fit KIC 1435467 parameter posteriors

A mild detection

As if asteroseismology wasn’t hard enough, let’s make it even more difficult for you!

KIC 8801316 is a subgiant with a numax ~1100 muHz, shown in the figures below.

KIC 8801316 estimates KIC 8801316 global fit KIC 8801316 parameter posteriors

This would be classified as a detection despite the low SNR due to the following reasons:

  • there is a clear power excess as seen in panel 3

  • the power excess has a Gaussian shape as seen in panel 5 corresponding to the solar-like oscillations

  • the autocorrelation function (ACF) in panel 6 show periodic peaks

  • the echelle diagram in panel 8 shows the ridges, albeit faintly


No SNR: KIC 6278992

KIC 6278992 is a main-sequence star with no solar-like oscillations.

KIC 6278992 estimates KIC 6278992 global fit KIC 6278992 parameter posteriors

Star sample

Depending on how large your sample is, you may choose to do it one of two ways.

Regular mode

Since this is optimized for running many stars via command line, the star names will be read in and processed from 'info/todo.txt' if nothing else is provided:

$ pysyd run

Parallel mode

There is a parallel processing option included in the software, which is helpful for running many stars. This can be accessed through the following command:

$ pysyd parallel

For parallel processing, pySYD will divide and group the list of stars based on the available number of threads. By default, this value is 0 but can be specified via the command line. If it is not specified and you are running in parallel mode, pySYD will use multiprocessing package to determine the number of CPUs available on the current operating system and then set the number of threads to this value (minus 1).

If you’d like to take up less memory, you can easily specify the number of threads with the –nthreads command:

$ pysyd parallel --nthreads 10 --list path_to_star_list.txt