Saved outputs
We have shown examples applied to stars of various sample sizes, for different stellar types, of varying SNR detections, both single star and many star we will not include any additional examples on this page but instead, list and describe each of the output files. Therefore we refer the reader to check out this page, the comand-line examples or the notebook tutorials if more examples are desired.
So while saving output files and figures is totally optional, we wanted to document them on this page since there’s a lot of information to unpack.
Subdirectories are automatically created for each star that is processed. Based on the way
you use pySYD
, there are a number of different outputs which are saved by default. Here
we will list and describe them all.
We will reserve this page solely for saved outputs and hence, please see our crashteroseismology
example if you’d like more information about the printed verbose
output.
Files
Listed are all the possible output files:
ID_BSPS.txt
ID_BDPS.txt
which we describe in more detail below, including the frequency and likely scenarios they arise from.
1. ID_PS.txt
(special cases)
This file is created in the case where only the time series data was provided for a target and
pySYD
computed a power spectrum. This optional, extra step is important to make sure that
the power spectrum used through the analyzes is both normalized correctly and has the proper
units – this ensures accurate and reliable results.
Note: unlike every other output file, this is instead saved to the data (or input directory) so that the software can find it in later runs, which will save some time down the road. Of course you can always copy and paste it to the specific star’s result directory if you’d like.
2. ID_BSPS.txt
(all cases)
After the best-fit background model is selected and saved, the model is generated and then subtracted from the power spectrum to remove all noise components present in a power spectrum. Therefore, there should be little to no residual slope left in the power spectrum after this step. This is saved as a basic text file in the star’s output directory, where the first column is frequency (in \(\rm \mu Hz\)) and the second column is power density, with units of \(\rm ppm^{2} \, \mu Hz^{-1}\) (i.e. this file has the same units as the power spectrum).
In fact to take a step back, it might be helpful to understand the application and importance of the background-corrected power spectrum (BCPS). The BCPS is used in subsequent steps such as computing global parameters (\(\rm \nu_{max}\) and \(\Delta\nu\)) and for constructing the echelle diagram. Therefore, we thought it might be useful to have a copy of this!
3. ID_BDPS.txt
(all cases)
Since we use both BCPS, we figured we’d clear up the muddy waters here (but also provide both copies to be used for their specific needs).
4. estimates.csv
(most cases)
By default, a module will run to estimate an initial value for the frequency corresponding to maximum power, or \(\rm \nu_{max}\). The module selects the trial with the highest signal-to-noise (SNR) and saves the comma-separated values for three basic variables associated with the selected trial: numax, dnu, and the SNR.
The file is saved to the star’s output directory, where both numax and dnu have frequency
units in \(\rm \mu Hz\) and the SNR is unitless. Remember, these are just estimates
though and adapted results should come from the other csv file called global.csv
.
This module can be bypassed a few different ways, primarily by directly providing the estimate yourself. In the cases where this estimating routine is skipped, this file will not be saved.
Note: The numax estimate is important for the main fitting routine.
4. global.csv
(all cases)
5. samples.csv
(special cases)
If the monte-carlo sampling is used to estimate uncertainties, an optional feature is available (i.e. –sampling) to save the samples if desired.
Note: there is a new feature that saves and sets a random seed any time you are running a target for the first time and therefore, you should be able to reproduce the samples in the event that you forget to save the samples.
Figures
Listed are all possible output figures for a given star (in alphabetical order):
and similar to the file section above, we describe each in more detail below.
1. background_only.png
(rare cases)
This figure is produced when the user is interested in determining the stellar background model only and not the global asteroseismic properties. For example, detecting solar-like oscillations in cool stars is extremely difficult to do but we can still characterize other properties like their convective time scales, etc.
2. bgmodel_fits.png
(optional cases)
This figure is generated when the –show
3. global_fit.png
(almost all cases)
4. power_spectrum.png
(special cases)
This is still in its developmental stage but the idea is that one is supposed to “check”
a target before attempting to process the pipeline on any data. That means checking
the input data for sketchy looking features. For example, Kepler short-cadence data
has known artefacts present near the nyquist frequency for Kepler long-cadence data
(\(\sim 270 \mu \mathrm{Hz}\)). In these cases, we have special frequency-domain tools
that are meant to help mitigate such things (e.g., see pysyd.target.Target.remove_artefact
)
5. samples.png
(many cases)
Each panel shows the samples of parameter estimates from Monte-Carlo simulations. Reported uncertainties on each parameter are calculated by taking the robust standard deviation of each distribution.
6. search_&_estimate.png
(most cases)
7. time_series.png
(special cases)
Takeaway
As we’ve said many times before, the software is optimized for running an ensemble of stars.
Therefore, the utility function pysyd.utils.scrape_output
will automatically concatenate the
results for each of the main modules into a single csv in the parent results directory so that
it’s easy to find and compare.
API
- pysyd.plots.check_data(star, args, show=True)
Plot input data for a target
- pysyd.plots.create_benchmark_plot(filename='comparison.png', variables=['numax', 'dnu'], show=False, save=True, overwrite=False, npanels=2)
Compare ensemble results between the
pySYD
andSYD
pipelines for the Kepler legacy sample
- pysyd.plots.make_plots(star, show_all=False)
Make plots
Function that establishes the default plotting parameters and then calls each of the relevant plotting routines
- Parameters
- starpysyd.target.Target
the pySYD pipeline object
- showallbool, optional
option to plot, save and show the different background models (default=`False`)
- Calls
pysyd.plots.plot_estimates
pysyd.plots.plot_parameters
pysyd.plots.plot_bgfits
[optional]pysyd.plots.plot_samples
- pysyd.plots.plot_1d_ed(star, filename='1d_ed.png', npanels=1)
Plot collapsed ED
- Parameters
- startarget.Target
the pySYD pipeline object
- filenamestr
the path or extension to save the figure to
- npanelsint
number of panels in this figure (default=`1`)
- pysyd.plots.plot_bgfits(star, filename='bgmodel_fits.png', highlight=True)
Comparison of the background model fits
- Parameters
- startarget.Target
the pySYD pipeline object
- filenamestr
the path or extension to save the figure to
- highlightbool, optional
if
True
, highlights the selected model
- pysyd.plots.plot_estimates(star, filename='search_&_estimate.png', highlight=True, n=0)
Plot estimates
Creates a plot summarizing the results of the find excess routine.
- Parameters
- starpysyd.target.Target
the pySYD pipeline object
- filenamestr
the path or extension to save the figure to
- highlightbool, default=True
option to highlight the selected estimate
- pysyd.plots.plot_light_curve(star, args, filename='time_series.png', npanels=1)
Plot light curve data
- Parameters
- startarget.Target
the pySYD pipeline object
- filenamestr
the path or extension to save the figure to
- npanelsint
number of panels in this figure (default=`1`)
- pysyd.plots.plot_parameters(star, subfilename='background_only.png', filename='global_fit.png', n=0)
Plot parameters
Creates a plot summarizing all derived parameters
- Parameters
- starpysyd.target.Target
the main pipeline Target class object
- subfilenamestr
separate filename in the event that only the background is being fit
- filenamestr
the path or extension to save the figure to
- pysyd.plots.plot_power_spectrum(star, args, filename='power_spectrum.png', npanels=1)
Plot power spectrum
- Parameters
- startarget.Target
the pySYD pipeline object
- filenamestr
the path or extension to save the figure to
- npanelsint
number of panels in this figure (default=`1`)
- pysyd.plots.plot_samples(star, filename='samples.png')
Plot results of the Monte-Carlo sampling
- Parameters
- startarget.Target
the pySYD pipeline object
- filenamestr
the path or extension to save the figure to
- pysyd.plots.select_trial(star)
Select trial
This is called when
--ask
isTrue
(i.e. select which trial to use for \(\\rm \\nu_{max}\)) This feature used to be called as part of a method in thepysyd.target.Target
class but left a stale figure open – this way it can be closed after the value is selected- Parameters
- starpysyd.target.Target
the pySYD pipeline object
- Returns
- valueint or float
depending on which
trial
was selected, this can be of integer or float type
What next?
You may be asking yourself, well what do I do with this information? (and that is a totally valid question to be asking)