Skip to content

Commit

Permalink
Added support for PSF convolution options
Browse files Browse the repository at this point in the history
  • Loading branch information
danseaton committed Apr 19, 2024
1 parent 04a0b0b commit fb3d17e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion suncet_instrument_simulator/config_files/config_default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
compute_new_radiance_maps = False
# Convolve the image with the telescope point spread function
apply_psf = True
# Convolve the image with modeled diffraction due to filter mesh, expressed as another point spread function
apply_mesh_diffraction = False
# Convolve the image with scattered light modeled inside the telescope, expressed as another point spread function
apply_scattered_light_psf = False
apply_mirror_scatter = True
# Include spikes due to particle hits on the detector (see spike_rate below to control frequency)
apply_particle_spikes = True
# Subtract a dark frame with onboard software
Expand Down
3 changes: 2 additions & 1 deletion suncet_instrument_simulator/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def __init__(self, filename):
# behavior
self.compute_new_radiance_maps = config['behavior'].getboolean('compute_new_radiance_maps')
self.apply_psf = config['behavior'].getboolean('apply_psf')
self.apply_scattered_light_psf = config['behavior'].getboolean('apply_scattered_light_psf')
self.apply_mesh_diffraction = config['behavior'].getboolean('apply_mesh_diffraction')
self.apply_mirror_scatter = config['behavior'].getboolean('apply_scattered_light_psf')
self.apply_particle_spikes = config['behavior'].getboolean('apply_particle_spikes')
self.subtract_dark = config['behavior'].getboolean('subtract_dark_onboard')
self.compress_image = config['behavior'].getboolean('compress_image')
Expand Down

0 comments on commit fb3d17e

Please sign in to comment.