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

NDFD GRIB data support part 1: skip non-GRIB byte sequences between messages #60

Merged
merged 5 commits into from
Nov 5, 2023

Conversation

noritada
Copy link
Owner

@noritada noritada commented Nov 5, 2023

This PR changes the behavior of the reader so that it skips non-GRIB byte sequences between messages.

This is the 1st step of NDFD GRIB data support discussed in #59.

…es exist in-between

The process of reading Section 0 has been rewritten from scratch so that
the next message is read even if an arbitrary byte sequence is inserted
before the message.

This change has changed the behavior of the reader, as the byte sequence
given to the reader is no longer expected to start with `GRIB`, so
errors caused by failure to read `GRIB` no longer occur.
Copy link
Owner Author

@noritada noritada left a comment

Choose a reason for hiding this comment

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

Self-reviewed. Passing CI.

@noritada noritada merged commit 2832ddf into master Nov 5, 2023
5 checks passed
@noritada noritada deleted the feat/skip-non-grib-byte-sequences branch November 5, 2023 07:46
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