Skip to content
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

Bufixes for MSL sensor intrinsics #589

Merged
merged 3 commits into from
Jan 16, 2024
Merged

Conversation

oleg-alexandrov
Copy link
Collaborator

This is a fix for a bug I made with MSL cameras.

This bug explains part of the problem of why ISIS is having a hard time with MSL data.

A corresponding bug was fixed in ASP. The build 2024-01-12 has that. An earlier ASP build will now give wrong result.

The root cause of the problem was that for MSL the zero datum is not beneath the rover, but above it, so some heuristics was failing.

Things were working with mapproject because two bugs were canceling each other out (since I developed both). No such luck with ISIS.

This was very carefully tested with many SOL00603 MAST and NAV images. The most relevant pair is:

SOL00603/NLB_451026746EDR_F0311094NCAM00271M1
MAST_0603/0603ML0025450040301380C00_DRCL

These can be used with the MSL DEM I shared with @acpaquette.

I am not sure a new changelog entry is needed, since the existing MSL work is already listed.

Licensing

This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words:

This work is free and unencumbered software released into the public domain. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain.

  • I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

@acpaquette
Copy link
Collaborator

Sweet, thank you Oleg. Two things:

Tests will likely need to be fixed, just started the pipelines

Can we get another changelog entry under Fixes. Something along the lines of inverted pixel_size and pixel_size related properties in CAHVOR/MSL

@oleg-alexandrov
Copy link
Collaborator Author

oleg-alexandrov commented Jan 12, 2024 via email

@oleg-alexandrov
Copy link
Collaborator Author

oleg-alexandrov commented Jan 13, 2024

I put a fix to the tests. Only one test still fails:

tests/pytests/test_util.py::test_get_metakernels_no_alespiceroot

This is a strange one. It is supposed to warn if ALESPICEROOT is not set. I did not modify anything regarding that, so not sure.

Let us see if cloud tests pass.

Also added to changelog.

@acpaquette
Copy link
Collaborator

The 3.8 test is failing due to poor download speeds on linux. This looks good otherwise, I am going to merge this and deal with the failing ci in another PR

@acpaquette acpaquette merged commit 775ff21 into DOI-USGS:main Jan 16, 2024
12 of 13 checks passed
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 15.82%. Comparing base (ec88933) to head (db863c4).
Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
ale/drivers/msl_drivers.py 0.00% 4 Missing ⚠️
ale/base/type_sensor.py 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #589   +/-   ##
=======================================
  Coverage   15.82%   15.82%           
=======================================
  Files          56       56           
  Lines        6283     6283           
=======================================
  Hits          994      994           
  Misses       5289     5289           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants