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

Update isd_generate.py to support optional function to ensure that instrument pointing quaternions do not change sign #612

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

thareUSGS
Copy link
Contributor

@thareUSGS thareUSGS commented Aug 21, 2024

Implement an optional function to ensure that instrument pointing quaternions do not change sign.

This is really more to continue the discussion under issue #603 . I understand that NAIF is supposed to return the quaternions with flipped signs, but this seems to be breaking our applications. ASP has been updated to account for this issue. This example function for isd_generate.py, following ASP's logic, could also be used to "clean" the ISD for other applications like SOCET GXP.

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.

Comment on lines +92 to +97
parser.add_argument(
"-f", "--fix_quaternion",
action="store_true",
help="There are rare cases when a stream of quaternion flip their signs. This option will "
"fix those to be consistent. This takes after a NASA ASP function to do the same. "
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there cases where you wouldn't want this on?

Copy link
Contributor Author

@thareUSGS thareUSGS Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I think @oleg-alexandrov would state this should always be run to fix for all images (that assumes I am doing this correctly). But perhaps we have a flag that turns this function off instead of on (implying we would always run it unless the flag stops it).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weighing in here with a +1 to @oleg-alexandrov's comment below. Always on.

@oleg-alexandrov
Copy link
Collaborator

oleg-alexandrov commented Sep 5, 2024 via email

@oleg-alexandrov
Copy link
Collaborator

oleg-alexandrov commented Sep 5, 2024 via email

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.

4 participants