Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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,..).

PBOPENTo 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)
PBGRIBTo read a GRIB product
PBBUFRTo read a BUFR product
PBPSEUTo read a BUDG/TIDE/DIAG product
PBSIZETo give the size of a following GRIB or BUFR product
PBCLOSETo close a file
PBFLUSHTo flush data written to a file