Skip to content

Fix for overwriting mdv grid origin - #1921

Open
zssherman wants to merge 3 commits into
ARM-DOE:mainfrom
zssherman:mdv_origin_fix
Open

zssherman wants to merge 3 commits into
ARM-DOE:mainfrom
zssherman:mdv_origin_fix

Conversation

@zssherman

@zssherman zssherman commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

PR tags (required)

Select all that apply.

  • docs-only
  • tests-only
  • tiny-change (<5 lines of code in 1 or 2 files)
  • big refactor
  • scientific/algorithmic
  • design/architecture

What changed

2-4 bullets in plain language.

  • Update mdv grid to not override the origin and allow users to select via parameter

Why

Per the issue:
origin_longitude is over written by radar_longitude[0] (the same happens for lat and alt as well)

The main problem here is that Grid projection is global while MDV projection is field specific, so it is not clear how to combine the both. I would suggest to make it internally consistence, that means writing origin_longitude to sensor_lon even if it technicality incorrect. The other option would be to add an parameter in the write_grid_mdv function to regulate that.

Issues closed

Closes, #658

Target version

Select one.

  • next patch
  • next minor
  • next major

Validation

Mark each item as done or N/A. Add one short evidence line for each item.

  • I ran pre-commit or ruff

  • I ran tests

AI usage & manual verification

If AI tools were used, complete this section.

  • AI used: yes
  • Model/tooling: claude sonnet 5.5
  • Tasks delegated to AI: add parameter and new docstrings and found bug fixes
  • Manual verification performed:

Manual verification

Mark each item as done or N/A. Add one short evidence line or N/A reason for each item.

  • For scientific/algorithmic or result-changing PRs, I provided an example notebook.

    • Notebook link/path or N/A reason:
  • I compared before-and-after outputs and stated whether results changed.

    • Evidence or N/A reason:
  • I checked results against a known baseline or expected values.

    • Evidence or N/A reason:
  • I manually exercised relevant edge cases.

    • Evidence or N/A reason:
  • I checked backward compatibility or API behavior.

    • Evidence or N/A reason:

Impact note (optional): breaking behavior, scientific output shift, or user-visible behavior.

@zssherman
zssherman requested a review from RBhupi as a code owner November 18, 2026 17:54
@zssherman

Copy link
Copy Markdown
Collaborator Author

@RBhupi When you get time, if you can give this a review

This branch has not been deployed

No deployments
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.

1 participant