This tutorial works through the example of fitting the LP661-13 dataset which appeared in Czekala et al. 2017. The spectra were originally acquired by Dittmann et al. 2017, and can be downloaded in HDF5 format here.
If you are looking to use data from a different telescope, you will need to process these spectra into a format like this HDF5 file. Some additional notes on how to do this are in processing your spectra to an HDF5 file.
This tutorial assumes that you have already followed the installation instructions.
In [1]:
!psoap_hdf5_exploder.py --help
In [2]:
!psoap_initialize.py --help
For this project, we'll do
In [ ]:
!psoap_initialize.py --model SB2
Open up the new config.yaml file in your directory with your favorite text editor, and familiarize yourself with the settings. For more information, check out :ref:configuration.
Because Gaussian processes are generally very computationally intensive, we'll need to split the spectrum up into chunks so that it can be processed in parallel. The easiest way to get started is with psoap_generate_chunks.py
In [3]:
!psoap_generate_chunks.py --help
Try running this command with the default values, and then open up the chunks.dat file that now exists in your local directory. You can try playing around with the specific values, but if you want to regenerate the file, you'll need to delete the existing chunks.dat file from the directory first. To make things go quickly for this tutorial, we're only going to use a limited section of the spectrum. Therefore, we're going to open up chunks.dat and delete the chunks blueward of XX AA and redward of AA, leaving only 3 actual chunks. If you were doing this for real, you could choose your chunks more wisely. The inference procedure is set up so that it's one chunk per CPU core, so generally feel free to use as many chunks as you have CPU cores, since there is no additional time penalty.
In [ ]: