compare_spec_type¶
- beast.tools.compare_spec_type.compare_spec_type(phot_cat_file, beast_stats_file, spec_ra, spec_dec, spec_type, spec_subtype, lumin_class, match_radius=1.0, bright_filter='F475W', output_filebase=None, plot=False)[source]¶
BEAST verification: compare spectrally-typed stars to BEAST fits
- Parameters:
phot_cat_file (string) – name of the file with the photometry
beast_stats_file (string) – name of the file with the BEAST stats
spec_ra (array of floats) – coordinates for the spectrally typed stars (in degrees)
spec_dec (array of floats) – coordinates for the spectrally typed stars (in degrees)
spec_type (list of strings) – spectral type for each star (O/B/A/F/G/K/M)
spec_subtype (list of floats) – spectral subtype for each star (e.g., 7 for a B7 star, or 3.5 for a G3.5 star)
lumin_class (list of strings) – luminosity class for each star (I/II/III/IV/V)
match_radius (float (default=1)) – radius (arcsec) for searching for the BEAST star matching the spectrally typed star
bright_filter (string (default='F475W')) – the star within match_radius that is brightest in this filter will be chosen as the match
output_filebase (string (default=None)) – Prefix for saving the file of match info (“_spectype_match.fits” will be appended). If None, will return the table rather than saving it.
plot (boolean (default=False)) – Plot stars found to be a match.
- Returns:
spec_match – if output_filebase is None, a dictionary with match info is returned.
- Return type: