get_reflected#
-
VSPEC.psg_api.get_reflected(cmb_rad: PyRad, therm_rad: PyRad, planet_name: str)
astropy.units.Quantity
# Get reflected spectra.
- Parameters:
cmb_rad (PSGrad) – A rad file from the star+planet PSG call.
therm_rad (PSGrad) – A rad file from the planet-only PSG call.
- Returns:
The spectrum of the reflected light.
- Return type:
- Raises:
ValueError – If the wavelength axes do not match.
KeyError – If neither object has a ‘Reflected’ data array and at least one of them is missing the planet_name data array.