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

Update NHFLUX reader to read VARSRC files #1645

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Nebbychadnezzar
Copy link
Collaborator

@Nebbychadnezzar Nebbychadnezzar commented Feb 6, 2024

What is the change?

This PR adds a conditional processing of the 2D record in the NHFLUX binary file based on the value of the IWNHFL flag.

Why is the change being made?

The VARSRC binary file format is a subset of the NHFLUX binary file format. The reader currently has a minor bug in it that doesn't allow it to read a VARSRC file because it always assumes that the 2D record is present, which is not true for VARSRC files. This PR addresses the bug.

A new test has also been added to ensure that the VARSRC file format is considered as part of future code changes.


Checklist

  • The release notes (location doc/release/0.X.rst) are up-to-date with any important changes.
  • The documentation is still up-to-date in the doc folder.
  • If any requirements were affected, mention it in the release notes.
  • The dependencies are still up-to-date in pyproject.toml.

The test using the VARIANT NHFLUX file from the existing tests. I strip out
the datasets that are not present in the VARSRC file and build the test
based on that, rather than having to create a reference VARSRC file.
@Nebbychadnezzar Nebbychadnezzar marked this pull request as draft February 6, 2024 23:08
@Nebbychadnezzar Nebbychadnezzar self-assigned this Feb 6, 2024
@Nebbychadnezzar Nebbychadnezzar linked an issue Feb 6, 2024 that may be closed by this pull request
@Nebbychadnezzar Nebbychadnezzar added the bug Something is wrong: Highest Priority label Feb 6, 2024
@Nebbychadnezzar Nebbychadnezzar requested review from zachmprince and removed request for mgjarrett February 10, 2024 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong: Highest Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NHFLUX reader improvement
1 participant