-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add functions to open, and close GRIB2 files #276
Comments
OK, I see that @EricEngle-NOAA answers my question in his documentation:
|
We need functions in the library to open, create, and close GRIB2 files. For example, I need such functions to test >2gb capabilities for #43 and NOAA-EMC/NCEPLIBS-grib_util#294. However, such functions would be very useful for many other tests as well. And also to users who otherwise have to implement all the file I/O. |
FWIW, I agree that the need is there for these functions. I think, why the functionality is not there, is that g2c initially was just a port to C from the parent Fortran-based g2 library using f2c. The g2 library depends on bacio (Byte-Addressable C IO). |
Yes, and bacio, when I refactored it, came down to one C function that does file IO in a perfectly ordinary way. ;-) I am changing hte g2 Fortran library so that it calls the C library, and all functionality will live in the C library. I've already started this with pngpack/jpegpack because they used copies of some old C code in the g2 library. Moving forward, the C library will provide pgppack/jpegpack and the Fortran library just calls the C library. THese new file functions will get added after I release version 1.7.0, which is happening now. (See #232 ). |
This is now working pretty well for opening an existing file. Creating a new file is still not working. |
Given that this is a GRIB2 library, I would have expected to find a function that opens a GRIB2 file and reads the metadata in the file.
Yet there does not seem to be such a function.
Am I missing something?
@EricEngle-NOAA how do you open a file with the python library?
The text was updated successfully, but these errors were encountered: