Credit: Logan Sizemore, Diego Llanes, Indie Cowan, Dylan Huson
BOSSNet is a pipeline for predicting stellar parameters, including effective temperature, surface gravity, metallicity, and radial velocity. It supports various astronomical surveys and allows users to compute predictions with optional uncertainty estimates.
BOSSNet supports the following data sources:
- BOSS (Baryon Oscillation Spectroscopic Survey)
- APOGEE (Apache Point Observatory Galactic Evolution Experiment)
- LAMOST (Large Sky Area Multi-Object Fiber Spectroscopic Telescope), including:
- LAMOST DR7
- LAMOST DR8
- Gaia (Global astrometric and spectroscopic survey), including:
- Gaia XP (Extended Photometric Survey)
- Gaia RVS (Radial Velocity Spectrometer)
- BOSS, APOGEE, and LAMOST (DR7/DR8): Provide a plain text file containing a list of paths to the FITS files.
- Gaia: Provide an ECSV file in the format found at:
To execute the pipeline, use the following command structure:
python bossnet <spectra_paths> -d <data_source> -o <output_file> -u <num_uncertainty_draws> -b <batch_size> -w <num_workers> -vspectra_paths: Path to a plain text file containing paths to the spectra used for predictions.
-h, --help: Display help information and exit.-d, --data_source: Source of data. Default isboss. Available options are:bossapogeelamost_dr7lamost_dr8gaia_xpgaia_rvs
-o, --output_file: Path to the file where predictions will be saved. If not provided, the predictions will go to standard out.-u, --num_uncertainty_draws: Number of realizations to sample from the predictive distribution for uncertainty calculation. Default is0.-b, --batch_size: Batch size for the data loader. Adjust this based on system memory availability.-w, --num_workers: Number of workers for the data loader to utilize for parallel data loading.-v, --verbose: Print progress messages to the console for better visibility of the execution process.
-
Predict stellar parameters for BOSS data and save results to a file:
python bossnet spectra_paths.txt -d boss -o predictions.txt -v
-
Include uncertainty estimation with 100 draws:
python bossnet spectra_paths.txt -d apogee -o predictions_with_uncertainties.txt -u 100 -v
-
Use Gaia XP data with specific batch size and workers:
python bossnet gaia_spectra.csv.gz -d gaia_xp -b 32 -w 4 -o gaia_predictions.txt
The output file (if specified) will contain predictions for each spectrum provided in the input file, including calculated stellar parameters and optional uncertainty estimates.