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

L2 ENA Maps: Bin arrays based on matched indices #1263

Closed
nkerman opened this issue Jan 14, 2025 · 0 comments · Fixed by #1264
Closed

L2 ENA Maps: Bin arrays based on matched indices #1263

nkerman opened this issue Jan 14, 2025 · 0 comments · Fixed by #1264
Assignees
Labels
Ins: Hi Related to the IMAP-Hi instrument Ins: Lo Related to the IMAP-Lo instrument Ins: Ultra Related to the IMAP-Ultra instrument Mapper Tools Work related to common mapper tools
Milestone

Comments

@nkerman
Copy link
Contributor

nkerman commented Jan 14, 2025

Algorithm Description:

Once data value indices have been matched between two frames (e.g. from an L1C DPS frame to the HAE frame in which the L2 map will be projected), a function must "bin" from the first input frame to the second output frame. "Binning" here means taking values from the indices in frame 1, and assigning them to the matched index in frame 2.

Requirements:

  • There may be a non- 1:1 correspondence between the indices in frame 1 and the indices in frame 2. That is, multiple indices in one frame may map onto the same index in another frame.
  • Not all possible indices in each frame are guaranteed to be used. This can mean that not all input values are projected into the output frame. It can also mean that not all output frame indices receive any values from the input frame.

Algorithm Code Information:

Input data:

  • input frame indices (ordered list)
  • output frame indices (ordered list)
  • input values to be binned
    • Allow multiple values to be binned on the same indices*
    • Must be at least as long on the axis to be indexed as input frame indices
    • May have an "extra axis" - e.g. a non-spatially-binned dimension like energy. Each bin of this axis will be treated independently.
  • Shape of output frame grid, or the number of elements in it, or some other way of determining how large the output value array must be.
    • Must be at least as large as the output frame indices

* Suggest 2 functions: one to bin a single array, and another to loop through a dictionary of:
{"array_name": NDarray} and bin each.

Related Issues/PRs:

#1258
#1260

@nkerman nkerman added Ins: Hi Related to the IMAP-Hi instrument Ins: Lo Related to the IMAP-Lo instrument Ins: Ultra Related to the IMAP-Ultra instrument Mapper Tools Work related to common mapper tools labels Jan 14, 2025
@nkerman nkerman self-assigned this Jan 14, 2025
@nkerman nkerman added this to IMAP Jan 14, 2025
@nkerman nkerman added this to the Jan 2025 milestone Jan 14, 2025
@github-project-automation github-project-automation bot moved this to Done in IMAP Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ins: Hi Related to the IMAP-Hi instrument Ins: Lo Related to the IMAP-Lo instrument Ins: Ultra Related to the IMAP-Ultra instrument Mapper Tools Work related to common mapper tools
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant