/castl

Primary LanguagePythonMIT LicenseMIT

🏖️ SANDCASTL 🏖️

Spectral ANalog of Dwarfs and Computional Analysis of Spectral TempLates (SANDCASTL) is a Python 3 Jupyter Notebook. It allows for a simple input of a reduced spectrum to fit to the newly created SAND model. SANDCASTL fits for 3 main parameters, including: effective temperature (Teff), surface gravity (Log(g)), and metalliticty ([M/H]). With 2 additional nuisance parameters of horizontal and veritcal shift.

🛠️ Installation Steps:

1. Python

-> Python 3.8 or newer is needed for SANDCASTL 

2. Packages

3. SPLAT

🏆 How to Use SANDCASTL:

  • Note: This package is a Jupyter Notebook and that each piece of code needs to run before preforming the MCMC simulation
  • Note: This package should not be used as a blackbox, please follow and understand this code when using
  • Note: All required variables are put into "Input Requirements" code block
  • Note: Read the comment above each variable for additional notes
  • Note: An example output can be seen in the "Output" directory
1) Put input file directory in "input_file" variable
2) Input outfile file name in "output_file" variable
3) Input spectral type estimate in "spt_estimate" variable
4) Input the number of threads in "threads" variable
5) Input the number of walkers in the "walkers" variable
6) Input the number of steps in the "steps" variable
7) Input the number of discards in the "discard" variable
  • Once the inputs are complete click the "Run All" button (FOLLOW THE CODE)
  • Once the notebook is finished running all of the outputs are in the "Output" directory

📞 Support

Mr. Hunter Brooks -> hcb98@nau.edu

📖 Acknowledgments

  1. Please Use the SPLAT Acknowledgement at: https://github.com/aburgasser/splat
  2. Please Cite Brooks et al, in prep (2023/24)