Run an automated search for exocomet transits from raw HARPS 2D fits files.
Data used in paper: Entire HARPS archive (from 21/03/2022)
All package dependencies can be found listed in requirements.txt
.
If you have a folder with fits files corresponding to different stars, this is how we created our database:
build-dataset:
metadata.py
- saves metadata from fits files infits
folder, usingGetData.py
spectra.py
- saves spectra from fits files infits
folder for specified atomic line (CaII H & K lines), usingGetData.py
. +/- 2000 points from atomic line is savedsanitise_reduce.py
- cleans up the name of the observed targets to facilitate grouping (eg. 'reduced' name is all lower case and underscore, dashes, spaces are removed)
groups:
grouping.py
- group observed targets by 'reduced' name and coordinatescreate_dataset.py
- createdataset
folder with all the stars in subfolders withreduced
name
Code that we used to generate our vetting plots use the following codes. Note these will need to be adjusted to your own database:
HR:
Gaia.py
- get Gaia IDs and then query Gaia Catalogue to get information for HR diagram
search:
Both use param.json
as parameters for the search.
quicksearch.py
- searches through dataset for exocomet transits and returns a list of potential candidatesiplotter.py
- different options (checkiplotter.py --help
):--star <name>
- will show interactive diagnostic plots for this specific star- no options - will run through results of
quicksearch.py
and show interactive diagnostic plots for star satisfyingparam.json
The interactive diagnostic plots will ask for user input to:
- classify stars - classification results will be visible in
results/CandidateReport/
:- 'candidate' - press
y
- 'not_candidate_but_real' - press
n
- 'not_candidate_but_junk' - press
j
- 'flagged' - press
w
- 'skip' - press
space
- 'candidate' - press
- print all metadata for the spectra of the star - press
d
- print metadata for all the potential detections - press
o
After classification done, close the plot and the next star should pop up. At the end you will have the option to review skipped stars and flagged stars.