Skip to content

A placeholder quickmap product with all 0s, just to start producing s…#3350

Open
vineetbansal wants to merge 1 commit into
IMAP-Science-Operations-Center:devfrom
vineetbansal:vb/issue3349
Open

A placeholder quickmap product with all 0s, just to start producing s…#3350
vineetbansal wants to merge 1 commit into
IMAP-Science-Operations-Center:devfrom
vineetbansal:vb/issue3349

Conversation

@vineetbansal

Copy link
Copy Markdown
Collaborator

Closes #3349

lo_l2() now receives all inputs at all pivot angles and calls the new _inputs_at_map_pivot_angle() helper, which selects inputs against the pivot angle encoded in the map descriptor using a tightened PSET_PIVOT_ANGLE_TOLERANCE of 5 degrees. This tolerance matches what the lo team uses in their technical documentation (and is guaranteed not to cause overlaps for now).

quickmap support: rather than raising ValueError when no pointing sets are present, lo_l2() falls back to _lo_l2_quickmap(), which builds a correctly shaped, zero-filled rectangular ENA map from the descriptor alone. No psets are needed for the generation of quickmaps.

The actual implementation is coming in another PR soon. In the meantime, the logger messages in here will allow us to see if the correct inputs are being received and filtered.

@vineetbansal
vineetbansal requested a review from tmplummer July 24, 2026 21:29

@tmplummer tmplummer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't have much to comment on for detailed implementation. My comments should express my opinion that the quickmaps use a different descriptor and different overall L2 function.

projected onto it, see ``_inputs_at_map_pivot_angle``. When none of the
psets match (or no psets were passed-in to begin with), a quickmap is
produced instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this trying to make this function do too much. Should there be a separate function for normal maps and quickmaps?

Comment thread imap_processing/cli.py
class Lo(ProcessInstrument):
"""Process IMAP-Lo."""

def pre_processing(self) -> ProcessingInputCollection:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think that the reason it was recommended to filter here was so that the Parents attribute would be correct when the CDF gets written. Is there a reason why filtering on angle here doesn't work?

dataset = cleanup_intermediate_variables(dataset)

return [
sky_map.build_cdf_dataset(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems like the descriptor should be modified somehow to indicate this is a quickmap? I would think that thsoe should be easily distinguished from regular maps by the filename.

Comment thread imap_processing/cli.py
@@ -1323,18 +1275,21 @@ def do_processing(
datasets = lo_l1c.lo_l1c(data_dict, anc_dependencies)

elif self.data_level == "l2":

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you distinguish quickmaps by the descriptor? I would think that this is the place to branch and just call a different function in lo_l2.py1 that will make the quickmap.

@vineetbansal

Copy link
Copy Markdown
Collaborator Author

I just ran this by Mitchell and learned something new - they've been informally calling these quickmaps all along because they under the 1yr cadence. So it's essentially "the" map and can use the official descriptor.

For your other points - good point about the parents attribute - I had forgotten about that. I can move filtering to the pre_processing step.

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.

Imap-Lo - a blank l2 quickmap product that ingests all inputs and filters on the correct pivot angles

2 participants