-
Notifications
You must be signed in to change notification settings - Fork 16
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
795 spice instrument pointing at specified time #903
795 spice instrument pointing at specified time #903
Conversation
…ame_transform funciton Parameterize frame_transform test Add frame_transform coverage for multiple ets and single position vector
Add test coverage for instrument_pointing funciton
imap_processing/spice/geometry.py
Outdated
return pointing | ||
if isinstance(et, typing.Collection): | ||
return np.array([spice.reclat(vec)[1:] for vec in pointing]) | ||
return np.array(spice.reclat(pointing)[1:]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spice.reclat()
returns radians. These should probably be converted to degrees.
@@ -62,6 +62,24 @@ class SpiceFrame(IntEnum): | |||
IMAP_GLOWS = -43750 | |||
|
|||
|
|||
# TODO: Update boresight for in-situ instruments | |||
# TODO: Confirm ENA boresight vectors | |||
BORESIGHT_LOOKUP = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my low effort initial approach to defining instrument boresights. I am open to suggestions of how to make this better, where to move this definition, etc. I still don't know if we should eventually create an instrument kernel that defines these. I need to get a better understanding of all of the requirements from all of the instruments before making that decision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to use .name
or can it just be the enumeration itself as the lookup?
imap_processing/spice/geometry.py
Outdated
return np.array([spice.reclat(vec)[1:] for vec in pointing]) | ||
return np.array(spice.reclat(pointing)[1:]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return np.array([spice.reclat(vec)[1:] for vec in pointing]) | |
return np.array(spice.reclat(pointing)[1:]) | |
return np.rad2deg([spice.reclat(vec)[1:] for vec in pointing]) | |
return np.rad2deg(spice.reclat(pointing)[1:]) |
@@ -62,6 +62,24 @@ class SpiceFrame(IntEnum): | |||
IMAP_GLOWS = -43750 | |||
|
|||
|
|||
# TODO: Update boresight for in-situ instruments | |||
# TODO: Confirm ENA boresight vectors | |||
BORESIGHT_LOOKUP = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to use .name
or can it just be the enumeration itself as the lookup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTGM with my limited knowledge.
Convert radians to degrees for lat/lon output
63b77e8
into
IMAP-Science-Operations-Center:dev
Change Summary
Overview
Add preliminary function for computing instrument pointing using spice.
Updated Files
instrument_pointing
functionCloses: #795