Add variable PSF option to romanisim and make it the default. #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for a linear PSF variation across each SCA.
Formerly we assumed that the PSF was constant in each SCA. This PR adds a new class that makes 4 PSFs at the 4 corners of each detector, and expresses the PSF at any point in the detector as a weighted linear sum of those 4 PSFs. It also adds support in add_objects_to_image to use this new kind of PSF object.
There was an issue with ChromaticSums and convolutions and photon shooting in galsim 2.5.0; this also bumps the galsim requirement to 2.5.1 (the latest version).
This feature was motivated by the fact that romancal uses a gridded PSF that includes variation over each SCA, and astrometric residuals between romanisim and romancal showed best performance in the center of the SCA where the romanisim PSF was instantiated. Using variable PSFs in both romancal and romanisim improves the astrometric agreement by a factor of three or so in F087.