You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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: