Skip to content

Latest commit

 

History

History
87 lines (57 loc) · 4.27 KB

docs.md

File metadata and controls

87 lines (57 loc) · 4.27 KB

RVLineList quick start guide

  1. Note: RvLineList is currently configured for use on the Roar Collab cluster. To use on another system, various reduced data and metadata files would need to be generated, which is beyond the scope of this guide.

  2. Download RvLinelist from the github page.

  3. Add the package to julia.

using Pkg
Pkg.add(path="/path/where/you/downloaded/RvLineList")
  1. Install python dependencies.
Pkg.add("PyCall")
using PyCall
try
   pyimport("pandas") #make sure pandas is installed
catch e
   pyimport_conda("pandas", "pandas") #if the module fails to load, install it to Conda.jl environment
   pyimport("pandas") #make sure pandas is installed
end
  1. Edit desired params in param.jl. The following params are also available as command line arguments: allowBlends, overlap_cutoff, rejectTelluricSlope, badLineFilter, quant, nbin, output_dir, and long_output. See comments in param.jl for param descriptions.

  2. Run RvLineList in the terminal.

cd /path/where/you/downloaded/RvLineList/

julia --project=. examples/NEID_test_script.jl --allowBlends=0 --overlap_cutoff=1e-5 --rejectTelluricSlope=10000 --badLineFilter="none", --nbin=1 --output_dir=outputs/test1

RvLineList Output Files

RvLineList creates four subdirectories in your output_dir. These are clean_masks, linefinder, VALD_masks, and mask_bins. The final results are stored in output_dir/clean_masks, and intermediate products are stored in the other directories.

clean_masks

The final output mask of RvLineList, in either default or long_output format. Long_output contains additional columns with line parameters from VALD or computed by RvLineList to determine mask membership.

VALD input line lists

To generate an input VALD line list, navigate in a web browser to http://vald.astro.uu.se/, login (you may need to create an account), and click "Extract Stellar".

The VALD "extract stellar" parameters used for VALD-Solar-0.01.txt:

  • Starting Wavelength: 3000
  • Ending Wavelength: 10000
  • Detection Threshold: 0.001
  • Microturbulence: 1.0
  • Teff: 5778
  • log g: 4.44
  • Chemical composition: Fe: -4.54
  • Extraction format: Short format
  • Retrieve data via: FTP
  • Hyperfine structure: unchecked
  • Require lines to have a known value of: all unchecked
  • Linelist configuration: default
  • Unit selection: Energy unit: eV - Medium: air - Wavelength unit: angstrom - VdW syntax: default

For line depths down to 0.001 instead of 0.01, it seemed the file sizes were too large for VALD to handle, so my requests were not working for the full 3000-10000 angstrom range, but they worked for the following wavelength ranges: [(3000,4000), (4000,6000), (6000,9000), (9000,10000)]. Using these VALD output files, I manually copy/pasted the data lines from each file to combine them into one file. The original VALD request results were stored in inputs/VALD_extract_stellar/VALD-Solar-0.001-files, and the final merged file is inputs/VALD_extract_stellar/VALD-solar-0.001-merged.txt.

linefinder

neid_linefinder_lines.csv

This file contains the results of automatically searching for and fitting lines in a high-SNR template spectrum constructed from the 100 "best" days NEID data in 2021.

neid_linefinder_line_fits.csv

To get the line wavelengths for the mask, we fit our model to the lines in neid_linefinder_lines.csv for each of the 100 "best" days of 2021 NEID solar data individually. Therefore, there are 100 x (the number of lines in neid_linefinder_lines.csv) rows in the neid_linefinder_line_fits.csv file. To match this file with the mask, the line_id columns can be matched up. E.g. if the first line in the clean_mask has line_id = 5, then its 100 model fits are the rows in neid_linefinder_line_fits.csv that have line_id = 5.

neid_linefinder_line_RVs.csv

This file contains line-by-line RVs measured on 100 NEID daily average spectra from 2021. They are not currently used elsewhere in RvLineList.

VALD_masks

The default behavior of RvLineList is to leave this empty, but if modified, the VALD-branch outputs can be output here.

mask_bins

This folder used to be used to track which mask entry ended in which bin when nbins > 1, but it is not longer output, so the folder will be empty unless the user puts something there.