desk package¶
Submodules¶
desk.config module¶
Steve Goldman Space Telescope Science Institute May 17, 2018 sgoldman@stsci.edu
This script is for plotting the outputs of the sed_fitting script.
desk.plotting_seds module¶
desk.sed_fit module¶
-
desk.sed_fit.
find_closest
(target_wave, model_wave)[source]¶ - Parameters
target_wave – Target wavelength in um
model_wave – model wavelength in um
- Returns
a 1-D array of the closest data wavelength values, to the model wavelength values
-
desk.sed_fit.
fit
(source='default', distance=50, grid='Zubko-Crich-bb')[source]¶ - Parameters
source – Name of target in array of strings (or one string)
distance – distance to source(s) in kiloparsecs
grid – Name of model grid
- Returns
-
desk.sed_fit.
fit_norm
(data, norm_model)[source]¶ - Parameters
data – input data in tuple of x and y arrays
norm_model – closest wavelength values to data in 1-D array (from trim)
- Returns
trimmed model in 2 column np.array
Module contents¶
This packages contains python packages that are bundled with the package but are external to it, and hence are developed in a separate source tree. Note that this package is distinct from the /cextern directory of the source code distribution, as that directory only contains C extension code.