pynrc.simul.ngNRC.sources_to_slope¶
- pynrc.simul.ngNRC.sources_to_slope(source_table, nircam_obj, obs_params, tel_pointing, hdul_psfs=None, im_bg=None, cframe_out='sci', **kwargs)[source]¶
Create a slope image from a table or sources
- Parameters
source_table (astropy Table) – Table of objects in across the region, including headers ‘ra’, ‘dec’, and object fluxes in NIRCam filter in vega mags where headers are labeled the filter name (e.g, ‘F444W’).
nircam_obj (
pynrc.NIRCam
) – NIRCam instrument class for PSF generation.obs_params (dict) – Dictionary of parameters to populate DMS header. See create_obs_params in apt.py and level1b_data_model in dms.py.
tel_pointing (
webbpsf_ext.jwst_point
) – JWST telescope pointing information. Holds pointing coordinates and dither information for a given telescope visit.hdul_psfs (HDUList) – Option to pass a pre-generated HDUList of PSFs across the field of view. If set to None, then generated automatically.
im_bg (None or ndarray) – Option to specify a pre-generated image (or single value) of the Zodiacal background emission. If not specified, then gets automatically generating.
cframe_out (str) – Desired output coordinate frame, either ‘sci’ or ‘det’
- Keyword Arguments
npsf_per_full_fov (int) – Number of PSFs across one dimension of the instrument’s field of view. If a coronagraphic observation, then this is for the nominal coronagrahic field of view.
sptype (str) – Spectral type, such as ‘A0V’ or ‘K2III’.
wfe_drift (float) – Desired WFE drift value relative to default OPD.
osamp (int) – Sampling of output PSF relative to detector sampling. If hdul_psfs is specified, then the ‘OSAMP’ header keyword takes precedence.
use_coeff (bool) – If True, uses calc_psf_from_coeff, other WebbPSF’s built-in calc_psf. Coefficients are much faster