There are a number of subroutines which can be called from FORTRAN to handle GRIB and BUFR products in an unblocked binary file. These routines skip over any padding bytes between products such as those present in data files retrieved from the ECMWF Mars archives.
Debug output can be triggered from the PB routines using the environment variable PBIO_DEBUG (set to 1,2,..).
PBOPEN | To open a file for processing with calls to PB subroutines. (This supplies an index into an internal table which contains a C file pointer which must be given as an input argument to other routines) |
PBGRIB | To read a GRIB product |
PBBUFR | To read a BUFR product |
PBPSEU | To read a BUDG/TIDE/DIAG product |
PBSIZE | To give the size of a following GRIB or BUFR product |
PBCLOSE | To close a file |
PBFLUSH | To flush data written to a file |