-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
populate_mosaic_basic overwritten in step #1598
Comments
Thanks. Looking at the code here---the update_exposure_times bit is redundant but at least the calculations look the same. Meanwhile l2_into_l3_meta "contributes" only coordinates and so should probably get deleted with the "coordinates" contribution folded into populate_mosaic_basic; the other bits it does are inferior to what's happening in populate_mosaic_basic. Anyway, I agree that overwriting without the blending is wrong and the redundant calculations are problematic---just making sure we agree on the scope of the bug here. Thanks! |
This issue is tracked on JIRA as RCAL-1006. |
Thanks for taking a look. The calculations are different currently. To use
So with the current code on main the above example would output a model with |
Sorry, I was referring specifically to update_exposure_times when I said that the calculations are redundant but the same. I agree that l2_into_l3 should get deleted, moving only its "coordinates" copying into populate_mosaic_basic. |
Thanks! Good to know. I will keep that in mind for the changes needed to use the stcal resample. |
The metadata blending performed by
populate_mosaic_basic
:romancal/romancal/resample/resample.py
Line 875 in 826a972
is later overwritten by:
romancal/romancal/resample/resample.py
Line 533 in 826a972
romancal/romancal/resample/resample.py
Line 734 in 826a972
The test PR #1597 adds a test that runs the resample step on 2 inputs with different metadata:
The mosaic model contains:
This shows that the metadata assigned by
populate_mosaic_basic
is being overwritten since it would set:The text was updated successfully, but these errors were encountered: