Skip to content

Commit

Permalink
fixes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrin committed Sep 11, 2024
1 parent cf9a57a commit e686a22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webbpsf/detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def _show_miri_cruciform_kernel(filt, npix=101, oversample=4, detector_position=

# Functions for applying IFU optics systematics models
#
# Note, thes are is not actually a "Detector" effect, but this file is a
# Note, this is not actually a "Detector" effect, but this file is a
# convenient place to locate that code, because similar to the detector effects
# it's implemented as a post-processing modification on the output PSF array.

Expand Down Expand Up @@ -586,7 +586,7 @@ def apply_miri_ifu_broadening(hdulist, options, slice_width=0.196):
if model_type.lower() == 'gaussian':
# Very simple model just as a Gaussian convolution kernel
sigma = constants.INSTRUMENT_IFU_BROADENING_PARAMETERS['MIRI']['sigma']
hdulist[ext].header['IFUBSIGM'] = (model_type, "[arcsec] IFU PSF broadening Gaussian sigma")
hdulist[ext].header['IFUBSIGM'] = (sigma, "[arcsec] IFU PSF broadening Gaussian sigma")
out = scipy.ndimage.gaussian_filter(hdulist[ext].data, sigma / hdulist[ext].header['PIXELSCL'])
elif model_type.lower() == 'empirical':
# Model based on empirical PSF properties, Argryiou et al.
Expand Down Expand Up @@ -623,7 +623,7 @@ def apply_nirspec_ifu_broadening(hdulist, options):
if model_type.lower() == 'gaussian':
sigma = constants.INSTRUMENT_IFU_BROADENING_PARAMETERS['NIRSPEC']['sigma']
# currently sigma= 50 mas, half a NIRSpec IFU spaxel. Approximate and loose estimate
hdulist[ext].header['IFUBSIGM'] = (model_type, "[arcsec] IFU PSF broadening Gaussian sigma")
hdulist[ext].header['IFUBSIGM'] = (sigma, "[arcsec] IFU PSF broadening Gaussian sigma")
out = scipy.ndimage.gaussian_filter(hdulist[ext].data, sigma / hdulist[ext].header['PIXELSCL'])

hdulist[ext].data = out
Expand Down

0 comments on commit e686a22

Please sign in to comment.