Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Version 1.1.0

Latest

Choose a tag to compare

@kdlawson kdlawson released this 30 Oct 19:02
· 3 commits to main since this release
ac82bf2

This is a major update to Winnie that adds numerous new features and provides additional compatibility with SpaceKLIP tools. Backwards compatibility with outputs from prior versions of Winnie is NOT expected. It should still be possible to load reductions from prior versions of Winnie into SpaceReduction objects, but (for example) PSF grids will either need to be recreated or manually renamed to fit the new naming convention ('{concat}_fov{fov_pixels}_os{osamp}_psfs.fits'). Grids generated with even "osamp" values in previous versions should not be adapted this way (see "Bug fixes" below).

Changes:

  1. Naming conventions for outputs have changed and now simply use the concatenation string with a suffix appended (with the suffix depending on the output type and user settings).
  2. All reduction products are now saved with additional suffix "i2d" for compatibility with SpaceKLIP.
  3. If SpaceRDI is initialized with save_coron_transmission=True (default): when a concatenation is loaded, now saves a derotated and roll-averaged coronagraph transmission map with the "_psfmask" suffix for compatability with SpaceKLIP (if one doesn't already exist). Alternatively, can be run manually with SpaceRDI.make_derot_coron_maps.

New features:

  1. Deconvolution: SpaceRDI.run_deconvolution (see tutorial notebook 5).
  2. SpaceRDI instance saving/loading to/from Winnie reduction FITS files (see tutorial notebook 5).
  3. Jackknife reference resampling: SpaceRDI.jackknife_references (see tutorial notebook 5).
  4. SpaceRDI.make_css_subtracted_residuals: creates a final PSF-subtracted and circumstellar scene (CSS) subtracted image from which to generate contrast curves with SpaceKLIP / pyklip (see tutorial notebook 2).
  5. SpaceRDI.make_css_subtracted_stage2_products: creates a new sub-directory containing CSS-subtracted (not PSF-subtracted) calints files that can be reduced and analyzed using SpaceKLIP.

Bug fixes:

When generating a PSF grid with even "osamp", PSF sizes from WebbPSF were always even numbers. This resulted in a half pixel translation during convolution using scipy.signal.fftconvolve with mode='same'. In this update, when generating grids with even osamp, even PSF grids are shifted by half a pixel and cropped to an odd shape instead. This will require generating a new PSF grid, but should be automatic anyway given changes to naming conventions. Note: the shift is applied at the same time as the PSF centering shift that was already being applied, so PSF models with even osamp are not interpolated more than others.