Skip to content

fix: Produce MAG L1c without Normal mode data#2274

Merged
maxinelasp merged 25 commits intoIMAP-Science-Operations-Center:devfrom
ImperialCollegeLondon:fix/mag-l1c-no-normal
Oct 10, 2025
Merged

fix: Produce MAG L1c without Normal mode data#2274
maxinelasp merged 25 commits intoIMAP-Science-Operations-Center:devfrom
ImperialCollegeLondon:fix/mag-l1c-no-normal

Conversation

@mfacchinelli
Copy link
Copy Markdown
Collaborator

@mfacchinelli mfacchinelli commented Oct 3, 2025

Change Summary

Overview

Adds support for generating MAG L1c files even when no input Normal mode data is provided.

New Dependencies

N/A

New Files

Only new test data files.

Deleted Files

N/A

Updated Files

  • imap_processing/mag/l1c/mag_l1c.py:
    • Interpolation can also take place if the input normal mode file is None. Reuses existing functionality to downsample the whole day +/- 30 minutes, without checking Normal mode for gaps (the whole day is the gap).

Testing

  • Added a new test for L1c with no Normal mode.
  • Uncommented test_missing_norm_file in imap_processing/tests/mag/test_mag_l1c.py

@maxinelasp maxinelasp self-requested a review October 3, 2025 21:21
Copy link
Copy Markdown
Contributor

@maxinelasp maxinelasp left a comment

Choose a reason for hiding this comment

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

Overall looks good, just a few suggested changes. Thank you!!

Comment thread imap_processing/mag/l1c/mag_l1c.py Outdated
Comment thread imap_processing/tests/mag/test_mag_validation.py Outdated
Comment thread imap_processing/tests/mag/test_mag_validation.py Outdated
Comment thread imap_processing/mag/l1c/mag_l1c.py Outdated
Comment thread imap_processing/mag/l1c/mag_l1c.py
Comment thread imap_processing/mag/l1c/mag_l1c.py
Comment thread imap_processing/mag/l1c/mag_l1c.py
@maxinelasp
Copy link
Copy Markdown
Contributor

@all-contributors please add @mfacchinelli for code, test

@allcontributors
Copy link
Copy Markdown
Contributor

@maxinelasp

This project's configuration file has malformed JSON: .all-contributorsrc. Error:: Unexpected token { in JSON at position 4042

@maxinelasp
Copy link
Copy Markdown
Contributor

@all-contributors please add @mfacchinelli for code, test

@allcontributors
Copy link
Copy Markdown
Contributor

@maxinelasp

I've put up a pull request to add @mfacchinelli! 🎉

@mfacchinelli
Copy link
Copy Markdown
Collaborator Author

all-contributors please add mfacchinelli for code, test

Thanks Maxine!

Copy link
Copy Markdown
Contributor

@maxinelasp maxinelasp left a comment

Choose a reason for hiding this comment

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

Looks good! Let me know when you're ready to merge and I can merge it for you @mfacchinelli

@mfacchinelli
Copy link
Copy Markdown
Collaborator Author

Looks good! Let me know when you're ready to merge and I can merge it for you @mfacchinelli

Thanks Maxine, ready to merge!

@maxinelasp maxinelasp merged commit f12e361 into IMAP-Science-Operations-Center:dev Oct 10, 2025
14 checks passed
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.

2 participants