-
Notifications
You must be signed in to change notification settings - Fork 25
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
more bort testing #442
more bort testing #442
Conversation
@jbathegit I'm having trouble with this test code:
I am trying to open a file and read a subset into memory. I open the file with openbf(), but when I call readmg() I get this error:
What am I doing wrong? How do I read a subset into memory? |
Here's another question. I'm trying this code:
This fails in the readns() call like this:
What am I doing wrong? |
Hey Ed, I'm away at an interagency meeting all this week in Omaha, so I won't be terribly active (if at all) on any NCEPLIBS-bufr stuff this week. But for future reference you can always reach out to @jack-woollen on these types of library usage questions as well, b/c I'm not the only person who's an expert on the details of the library ;-) At any rate, what's going on here is that there's no DX BUFR table information embedded inside of the testfiles/IN_2 file, so you can never call openbf where the first and third arguments both point to that same file. Instead, you have to open the separate file testfiles/IN_2_bufrtab as a separate logical unit, then pass that unit number in as the third argument to openbf, as shown in the test/intest2.F90 code. This is basically what you tried to do in your second case where you tried to pass in a different logical unit 10 as the third argument, except that you never actually pointed that logical unit number to the testfiles/IN_2_bufrtab file, and which is why it's still failing. |
OK, I am breaking this into smaller PRs. There's something here that's causing the CI to be weird... |
1 similar comment
OK, I am breaking this into smaller PRs. There's something here that's causing the CI to be weird... |
Part of #381
Fixes #354
More bort testing for a number of functions.