NOAA-EMC / NCEPLIBS-bufr

The NCEPLIBS-bufr library contains routines and utilites for working with the WMO BUFR format.
Other
46 stars 22 forks source link

Python interface can't open WMO files? #564

Open rmclaren opened 9 months ago

rmclaren commented 9 months ago

The python interface on NCEPLIB-bufr doesn't seem to be able to open WMO BUFR files...

jbathegit commented 9 months ago

The way this sort of thing works is that you have to call openbf with 'SEC3' as the 2nd argument, and which in turn tells the library to read a BUFR file according to the Section 3 data description and the WMO master tables, rather than expecting a DX table to be embedded in the front of the file.

But it looks like that was never included as an option in the _init_ subprogram; rather, it looks like that subprogram was only ever encoded for options 'IN', 'OUT', and 'APN' in the self._ioflag argument. So I guess that would need to be added in order for that to work.

rmclaren commented 9 months ago

I think you are correct. This is probably a low priority issue.

jbathegit commented 8 months ago

OK, but if/when we ever add this feature, just FYI that we'll probably also need to introduce a Python interface for the Fortran mtinfo() subroutine as well.