-
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
Add placeholder function for converting from esa_step to esa_energy_step #1146
Add placeholder function for converting from esa_step to esa_energy_step #1146
Conversation
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.
LGTM!
@@ -341,3 +341,32 @@ def compute_hae_coordinates(dataset: xr.Dataset) -> dict[str, xr.DataArray]: | |||
new_vars["hae_longitude"].values = pointing_coordinates[:, 1] | |||
|
|||
return new_vars | |||
|
|||
|
|||
def de_esa_energy_step(dataset: xr.Dataset) -> dict[str, xr.DataArray]: |
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.
Just clarification question. Is this function to figure out ESA voltages of input energy steps?
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.
Not quite. The esa_step
in telemetry references an index in the sweep table that was used. The sweep table determines the voltages that the ESA inner and outer are set to and thus the energy bandpass of what particles get through. I don't quite understand all of the details of the algorithm that will be implemented in this function yet. But it will use the housekeeping data to look at voltages and then maybe map those voltages to an energy step. This ticket has some additional detail: #779
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.
LGTM
1e06973
into
IMAP-Science-Operations-Center:dev
Change Summary
Overview
Added a placeholder function for where the algorithm for computing
esa_energy_step
. The function will eventually be updated to use the L1B housekeeping to correctly populate the data. See ticket #779Updated Files
esa_energy_step
. For now, copy theesa_step
value.closes: #1145