Puzzling behavior of matched apertures #219
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
grism_ts_sw
NIRcam apertures are apertures on the SW detectors that "tag along" existing LW apertures. Thegenerate_nircam.py
code calls thetools.match_v2v3
method to match the (V2,V3) of the tag along apertures to a corresponding LW one.In theory the method should also modify the distortion coefficients associated to the SW aperture, once the SW aperture is moved to match the LW one.
I have however seen that explicitly calling the
tools.set_reference_point_and_distortion
method after thetools.match_v2v3
further modifies the aperture. Several quantities are affected: V2Ref, V3Ref, V3SciXAngle, V3SciYAngle, Idl2SciX00, Idl2SciY00 and this, for example changes the roundtrip erorr.I wonder if this is the expected behavior. In theory I would be expecting the second call to
tools.set_reference_point_and_distortion
to have no effect.For consistency with the treatment of all other apertures distortion coefficient I wonder if we should explicitly call
tools.set_reference_point_and_distortion
once more, as thegenerate_nircam
code in this PR does.But possibly first we need to understand what is really going on behind the scenes