Skip to content

Commit

Permalink
Remove "keep" option from lyot_method
Browse files Browse the repository at this point in the history
  • Loading branch information
oegorov committed Jul 1, 2023
1 parent 3b2ca60 commit 160873b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ lev3_fields = [] # indicate numbers of particular field if you want
# to limit the level3
# and further reduction by only selected
# pointings (e.g. [1], or [1,2], or 1)
lyot_method = 'mask' # possible: 'mask', 'mask_overlap', 'adjust', 'keep'
lyot_method = 'mask' # possible: 'mask', 'mask_overlap', 'adjust'

astrometric_alignment_type = 'table'
alignment_mapping_mode = 'shift'
Expand Down
11 changes: 2 additions & 9 deletions jwst_reprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -2046,8 +2046,8 @@ def __init__(self,
catalog
* astrometry_parameter_dict (dict): As `lv1_parameter_dict`, but for astrometric alignment
* lyot_method (str): Method to account for mistmatch lyot coronagraph in MIRI imaging. Can either mask with
`mask`, mask only in overlapping region with `mask_overlap', do nothing with 'keep'
or adjust to main chip with `adjust`. Defaults to `mask`
`mask`, mask only in overlapping region with `mask_overlap',
or adjust to main chip with `adjust`. Defaults to `mask`
* dither_match_short_nircam_chips (bool): In dither matching, whether to do a second step where all the
chips in a dither are matched before the final matching. Defaults to True, but should be turned off
for dither patterns where the chips don't end up overlapping
Expand Down Expand Up @@ -2681,13 +2681,6 @@ def run_all(self):
out_dir=out_band_dir,
check_overlap=True
)
elif self.lyot_method == 'keep':
logging.info(f"Coronograph area is untouched")
if not os.path.exists(out_band_dir):
os.makedirs(out_band_dir)
for f in cal_files:
out_name = os.path.join(out_band_dir, os.path.split(f)[-1])
shutil.copy(f, out_name)

else:

Expand Down

0 comments on commit 160873b

Please sign in to comment.