Given a TSO dict from a pandeia TSO run, simulate a transit/eclipse spectrum scaling the noise by the number of observations and resampling over wavelength.
Parameters
Name
Type
Description
Default
tso
required
n_obs
Number of transit/eclipse observations
1
resolution
If not None, resample the spectrum at the given resolution.
None
bins
If not None, bin the spectrum in between the edges given by this array.
None
noiseless
If True, do not add scatter noise to the spectrum.
False
Returns
Name
Type
Description
bin_wl
1D array
bin_spec
1D array
bin_err
1D array
bin_widths
1D array
Examples
>>>import gen_tso.pandeia_io as jwst>>>import matplotlib.pyplot as plt
>>> scene = jwst.make_scene(>>> sed_type='phoenix', sed_model='k5v',>>> norm_band='2mass,ks', norm_magnitude=8.637,>>> )