model_spectrum¶
- sofia_redux.calibration.standard_model.calibration_io.model_spectrum(infile, txt=False, dataframe=False, alpha=None, temp=None, wmin=40.0, wmax=300.0, df_index=0)[source]¶
- Read in or generate model spectrum. - Parameters:
- infilestr, pandas.DataFrame
- Defines how to generate the model. It can be the name of a file (if model is in an ASCII format or FITS format), set to “Blackbody” to generate a blackbody model, set to “PowerLaw” to generate a power law mdodel, or it could be a straight pandas DataFrame. 
- txtbool
- If set, - infileis the name of an ASCII formatted file.
- dataframebool
- If set, - infileis a pandas DataFrame.
- alphafloat
- The power law index to use if - infileis set to “PowerLaw”.
- tempfloat
- The blackbody temperature to use if - infileis set to “Blackbody”.
- wminfloat, optional
- Minimum wavelength of the spectrum. Defaults to 40 microns. 
- wmaxfloat, optional
- Maximum wavelength of the spectrum. Defaults to 300 microns. 
 
- Returns:
- wavelengthnumpy.array
- Wavelengths in stellar spectrum. 
- fluxnumpy.array
- Flux at each wavelength in - wavelength.
- power_lawbool
- A flag to indicate the model is a generated power law model. 
- blackbodybool
- A flag to indicate the model is a generated blackbody model.