LyotSeparateStep
This step should only be used on MIRI data!
This step splits up the MIRI image into the Lyot coronagraph and the main science chip. This means we can match the different backgrounds in each in a consistent way, and include the coronagraph in the final images.
N.B. only use one of either this step or LyotMaskStep.
API
- class pjpipe.LyotSeparateStep(in_dir, out_dir, step_ext, procs, miri_ext='mirimage', overwrite=False)[source]
Separate each MIRI file out into main science chip and lyot coronagraph
- Parameters:
in_dir – Input directory
out_dir – Output directory
step_ext – .fits extension for the files going into the step
procs – Number of processes to run in parallel
miri_ext – MIRI filename extension. Defaults to “mirimage”
overwrite – Whether to overwrite or not. Defaults to False
- do_step()[source]
Run lyot separation
- parallel_lyot_separate(file, mask_value=513)[source]
Parallelise lyot separation
- Parameters:
file – File to separate lyot in
mask_value – DQ bit value for masked values. Defaults to 513 (DO_NOT_USE+NON_SCIENCE)
- run_step(files, procs=1)[source]
Wrap paralellism around the lyot separation
- Parameters:
files – List of files to separate lyot in
procs – Number of parallel processes to run. Defaults to 1