Skip to content

Commit ff1185d

Browse files
authored
Merge branch 'master' into jp-3005-pixel-replacement
2 parents c60c28c + b47b3c9 commit ff1185d

File tree

7 files changed

+119
-7
lines changed

7 files changed

+119
-7
lines changed

CHANGES.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1.10.1 (unreleased)
1+
1.10.1 (2023-04-13)
22
===================
33

44
documentation
@@ -18,6 +18,13 @@ flat_field
1818

1919
- Updated to allow processing of NIRSpec fixed-slit 3D (rateints) files. [#7516]
2020

21+
jump
22+
----------
23+
- Added a new parameter that limits maximum size of extension of jump. It exists
24+
in the STCAL jump code but not in JWST. This allows the parameter to be changed.
25+
Also, scaled two input parameters that are listed as radius to be a factor of two
26+
higher to match the opencv code that uses diameter. [#7545]
27+
2128
other
2229
-----
2330

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ authors:
7272
given-names: "Thomas"
7373
orcid: "https://orcid.org/0000-0002-0012-2142"
7474
title: "JWST Calibration Pipeline"
75-
version: 1.10.0
75+
version: 1.10.1
7676
doi: 10.5281/zenodo.7038885
77-
date-released: 2023-04-03
77+
date-released: 2023-04-13
7878
url: "https://github.com/spacetelescope/jwst"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ the specified context and less than the context for the next release.
215215

216216
| jwst tag | DMS build | SDP_VER | CRDS_CONTEXT | Released | Ops Install | Notes |
217217
|---------------------|-----------|----------|--------------|------------|-------------|-----------------------------------------------|
218+
| 1.10.1 | B9.2rc2 | TBD | 1077 | 2023-04-13 | TBD | Second release candidate for B9.2 |
218219
| 1.10.0 | B9.2rc1 | TBD | 1075 | 2023-03-31 | TBD | First release candidate for B9.2 |
219220
| 1.9.6 | B9.1.2 | 2022.5.2 | 1068 | 2023-03-09 | 2023-03-15 | Final release candidate for B9.1.2 |
220221
| 1.9.5 | | | 1061 | 2023-03-02 | | First release candidate for B9.1.2 |

docs/jwst/jump/arguments.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ The ``jump`` step has five optional arguments that can be set by the user:
8080
* ``--extend_ellipse_expand_ratio``: Multiplicative factor to expand the radius of the ellipse fit to the detected extended emission in MIRI showers
8181

8282
* ``--time_masked_after_showers``: Number of seconds to flag groups as jump after a detected extended emission in MIRI showers
83+
84+
* ``--max_extended_radius``: The maxiumum extension of the jump and saturation that will be flagged for showers or snowballs

jwst/jump/jump.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def run_detect_jumps(input_model, gain_model, readnoise_model,
2323
sat_required_snowball=True, sat_expand=2,
2424
expand_large_events=False, find_showers=False, edge_size=25, extend_snr_threshold=1.1,
2525
extend_min_area=90, extend_inner_radius=1, extend_outer_radius=2.6, extend_ellipse_expand_ratio=1.1,
26-
time_masked_after_shower=30
26+
time_masked_after_shower=30,
27+
max_extended_radius=200,
2728
):
2829

2930
# Runs `detect_jumps` in stcal
@@ -77,7 +78,9 @@ def run_detect_jumps(input_model, gain_model, readnoise_model,
7778
extend_min_area=extend_min_area, extend_inner_radius=extend_inner_radius,
7879
extend_outer_radius=extend_outer_radius,
7980
extend_ellipse_expand_ratio=extend_ellipse_expand_ratio,
80-
grps_masked_after_shower=grps_masked_after_shower)
81+
grps_masked_after_shower=grps_masked_after_shower,
82+
max_extended_radius=max_extended_radius)
83+
8184

8285
# Update the DQ arrays of the output model with the jump detection results
8386
output_model.groupdq = new_gdq

jwst/jump/jump_step.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class JumpStep(Step):
4242
extend_outer_radius = float(default=2.6) Outer radius of the ring_2D_Kernel used for convolution
4343
extend_ellipse_expand_ratio = float(default=1.1) Expand the radius of the ellipse fit to the extended emission
4444
time_masked_after_shower = float(default=15) Seconds to flag as jump after a detected extended emission
45+
max_extended_radius = integer(default=200) The maximum radius of an extended snowball or shower
4546
"""
4647

4748
reference_file_types = ['gain', 'readnoise']
@@ -107,14 +108,16 @@ def process(self, input):
107108
min_sat_area=min_sat_area, min_jump_area=min_jump_area,
108109
expand_factor=expand_factor, use_ellipses=use_ellipses,
109110
min_sat_radius_extend=self.min_sat_radius_extend,
110-
sat_required_snowball=sat_required_snowball, sat_expand=self.sat_expand,
111+
sat_required_snowball=sat_required_snowball, sat_expand=self.sat_expand * 2,
111112
expand_large_events=expand_large_events, find_showers=self.find_showers,
112113
edge_size=self.edge_size, extend_snr_threshold=self.extend_snr_threshold,
113114
extend_min_area=self.extend_min_area,
114115
extend_inner_radius=self.extend_inner_radius,
115116
extend_outer_radius=self.extend_outer_radius,
116117
extend_ellipse_expand_ratio=self.extend_ellipse_expand_ratio,
117-
time_masked_after_shower=self.time_masked_after_shower)
118+
time_masked_after_shower=self.time_masked_after_shower,
119+
max_extended_radius=self.max_extended_radius * 2)
120+
118121

119122
gain_model.close()
120123
readnoise_model.close()

requirements-sdp.txt

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,99 @@
1414
# conda activate sdp
1515
# pip install -e .[test,sdp]
1616
# pip freeze | grep -v jwst >> requirements-sdp.txt
17+
alabaster==0.7.13
18+
asdf==2.15.0
19+
asdf-astropy==0.4.0
20+
asdf-coordinates-schemas==0.2.0
21+
asdf-standard==1.0.3
22+
asdf-transform-schemas==0.3.0
23+
asdf-unit-schemas==0.1.0
24+
asdf-wcs-schemas==0.1.1
25+
astropy==5.2.2
26+
attrs==22.2.0
27+
Babel==2.12.1
28+
BayesicFitting==3.1.1
29+
certifi==2022.12.7
30+
charset-normalizer==3.1.0
31+
ci-watson==0.6.1
32+
colorama==0.4.6
33+
contourpy==1.0.7
34+
coverage==7.2.3
35+
crds==11.16.22
36+
cycler==0.11.0
37+
docutils==0.19
38+
drizzle==1.13.7
39+
et-xmlfile==1.1.0
40+
exceptiongroup==1.1.1
41+
filelock==3.11.0
42+
fonttools==4.39.3
43+
future==0.18.3
44+
gwcs==0.18.3
45+
idna==3.4
46+
imageio==2.27.0
47+
imagesize==1.4.1
48+
importlib-metadata==6.3.0
49+
importlib-resources==5.12.0
50+
iniconfig==2.0.0
51+
Jinja2==3.1.2
52+
jmespath==1.0.1
53+
jplephem==2.18
54+
jsonschema==4.17.3
55+
kiwisolver==1.4.4
56+
lazy_loader==0.2
57+
lxml==4.9.2
58+
MarkupSafe==2.1.2
59+
matplotlib==3.7.1
60+
networkx==3.1
61+
numpy==1.24.2
62+
numpydoc==1.5.0
63+
opencv-python==4.7.0.72
64+
openpyxl==3.1.2
65+
packaging==23.1
66+
Parsley==1.3
67+
photutils==1.7.0
68+
Pillow==9.5.0
69+
pluggy==1.0.0
70+
poppy==1.0.3
71+
psutil==5.9.4
72+
pyerfa==2.0.0.3
73+
Pygments==2.15.0
74+
pymssql==2.2.7
75+
pyparsing==3.0.9
76+
pyrsistent==0.19.3
77+
pysiaf==0.19.1
78+
pytest==7.3.0
79+
pytest-cov==4.0.0
80+
pytest-doctestplus==0.12.1
81+
python-dateutil==2.8.2
82+
PyWavelets==1.4.1
83+
PyYAML==6.0
84+
readchar==4.0.5
85+
requests==2.28.2
86+
requests-mock==1.10.0
87+
ruff==0.0.261
88+
scikit-image==0.20.0
89+
scipy==1.9.1
90+
semantic-version==2.10.0
91+
six==1.16.0
92+
snowballstemmer==2.2.0
93+
spherical-geometry==1.2.23
94+
Sphinx==6.1.3
95+
sphinxcontrib-applehelp==1.0.4
96+
sphinxcontrib-devhelp==1.0.2
97+
sphinxcontrib-htmlhelp==2.0.1
98+
sphinxcontrib-jsmath==1.0.1
99+
sphinxcontrib-qthelp==1.0.3
100+
sphinxcontrib-serializinghtml==1.1.5
101+
stcal==1.3.5
102+
stdatamodels==1.3.1
103+
stpipe==0.4.6
104+
stsci.image==2.3.5
105+
stsci.imagestats==1.6.3
106+
stsci.stimage==0.2.6
107+
tifffile==2023.4.12
108+
tomli==2.0.1
109+
tweakwcs==0.8.1
110+
urllib3==1.26.15
111+
wiimatch==0.3.1
112+
zipp==3.15.0

0 commit comments

Comments
 (0)