Skip to content

Update data folders#71

Merged
klaundal merged 20 commits into
klaundal:mainfrom
FasilGibdaw:update-data-folders
Jun 5, 2026
Merged

Update data folders#71
klaundal merged 20 commits into
klaundal:mainfrom
FasilGibdaw:update-data-folders

Conversation

@FasilGibdaw

@FasilGibdaw FasilGibdaw commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Supermag data downloader handling placeholder "999999.0" B values.

Copilot AI review requested due to automatic review settings June 4, 2026 21:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR refactors the SuperMAG download post-processing to parameterize selected columns, replace sentinel placeholder values with NaN, flip SuperMAG’s Z-component sign to Lompe’s convention, and drop incomplete rows before saving.

Changes:

  • Introduce cols / b_cols lists to centralize selected output columns.
  • Replace sentinel 999999.0 values with NaN (currently for magnetic field columns) and drop rows containing NaN.
  • Move Z-sign flip into the method chain via .assign(...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lompe/data_tools/supermag.py
Comment thread lompe/data_tools/supermag.py
Comment thread lompe/data_tools/supermag.py
@klaundal
klaundal merged commit 452cc58 into klaundal:main Jun 5, 2026
2 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.

3 participants