spacetelescope / PASTIS

Algorithm for analytical contrast predictions of coronagraphs on segmented telescopes
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

remove extra normalization factor #166

Closed asahooexo closed 1 year ago

asahooexo commented 1 year ago

The values for intensity obtained just after FPM for a generic-segmented simulator has been divided twice by the maximum intensity just before FPM. This creates flux mis-match (at locations not blocked by coronagraph) between before and after FPM images. Fixes #165.

asahooexo commented 1 year ago

@ivalaginja Yes, the fluxes matched to a precision of 13digit after the decimal. Here plotting the result before and after the fix. Note that, the intermediate intensity returned for 'after_fpm' is in logarithm units where as for 'before_fpm' it is in ADU units. I converted 'after_fpm' to ADU units for these plots.

Before Fix:

Screen Shot 2023-07-11 at 12 53 02 PM

After Fix:

Screen Shot 2023-07-11 at 11 42 34 AM