webbpsf_ext.image_manip.model_to_hdulist¶
- webbpsf_ext.image_manip.model_to_hdulist(args_model, sp_star, bandpass)[source]¶
HDUList from model FITS file.
Convert disk model to an HDUList with units of photons/sec/pixel. If observed filter is different than input filter, we assume that the disk has a flat scattering, meaning it scales with stellar continuum. Pixel sizes and distances are left unchanged, and stored in header.
- Parameters
args_model - tuple –
- Arguments describing the necessary model information:
fname : Name of model file or an HDUList
scale0 : Pixel scale (in arcsec/pixel)
dist0 : Assumed model distance
wave_um : Wavelength of observation
units0 : Assumed flux units (e.g., MJy/arcsec^2 or muJy/pixel)
sp_star (
pysynphot.spectrum
) – A pysynphot spectrum of central star. Used to adjust observed photon flux if filter differs from model inputbandpass (
pysynphot.obsbandpass
) – Output Pysynphot bandpass from instrument class. This corresponds to the flux at the entrance pupil for the particular filter.