Closed JarronL closed 11 months ago
I realized there were going to be a number of merge conflicts between this PR and 1/f noise correction PR, so I have preemptively merged #102 into here.
Correct 1/f noise striping in stage1:
cube_fit
function, which utilizes polynomial fitting routines from webbpsf_ext
to fit linearized unsaturated and unflagged pixel data to quickly generate a kTC bias and slope images.cube_fit
to create kTC bias to subtract from linearized ramp data to create clean group-level datacube_fit
are then averaged together and used to produce a high-SNR ramp such that group signal levels match those within a given integration. 1/f cleaning routine adds about 100 msec for a single 320x320 frame. Expect time to increase proportional to frame size. See issue #97 for more information on operations.
Part 1 of #98.
Added a number of updates to the default coron1pipeline, most importantly the exclusion of dark subtraction for subarrays. This is implemented through a new function
run_single_file
which sets a number of best-practice defaults, such as skipping darks, IPC, and persistence steps. It also sets some defaults for jump thresholds, saturation flagging parameters, and pseudo-ref pixel rows / columns.run_obs
now callsrun_single_file
.All of the changes here should not change the outcome of existing notebooks and scripts. The only thing I've done is include better defaults, added more options for simplicity, debugging, and and fixed some known bugs within the pipeline itself.
New pipeline options:
pipe.save_intermediates=True
. Similar to the already existingpipe.save_save_calibrated_ramp
but for all steps.pipe.rate_int_outliers
utilizes a newcube_outlier_detection
function that flags outliers by comparing ramp integrations within an exposure with at least 5 integrations.rateint
datamodel instead of the defaultrate
datamodel by settingpipe.return_rateints=True
. Great for pipeline processing of a single file where you don't actually want to immediately inspect the results without have to save FITS files.Changes to existing pipeline steps:
expand_mask
function that will grow a binary mask using scipy'sbinary_dilation
function, which is more efficient than array shifting via numpy.Changes to
runobs
:run_single_file
so inherits those defaults described above.verbose
keyword set to True shows everything at INFO level or above from the pipeline. Setting this to False will show various SpaceKLIP log messages, but suppress pipeline message below ERROR.quiet
suppresses all messages below ERROR and employs progress bars to keep track of data reduction progress.runobs
Skip pipeline processing if data results already exist in output directory rather than re-running unnecessary and overwriting. Can be overriden using theoverwrite
keyword.