NCEPLIBS-bufr  12.0.1
ireadmt.f File Reference

Check whether master BUFR tables need to be read from the local file system. More...

Go to the source code of this file.

Functions/Subroutines

integer function ireadmt (LUN)
 Check whether master BUFR tables need to be read from the local file system. More...
 

Detailed Description

Check whether master BUFR tables need to be read from the local file system.

Author
J. Ator
Date
2009-03-23

Definition in file ireadmt.f.

Function/Subroutine Documentation

◆ ireadmt()

integer function ireadmt (   LUN)

Check whether master BUFR tables need to be read from the local file system.

This function checks the most recent BUFR message that was read via a call to one of the message-reading subroutines and determines whether the appropriate corresponding BUFR master tables have already been read into internal memory.

If not, then it opens the appropriate master BUFR tables on the local file system and reads the contents into internal memory, clearing any previous master BUFR table information that may have previously been stored there.

Parameters
[in]LUN- integer: File ID.
Returns
ireadmt - integer: Flag indicating whether new master BUFR tables needed to be read into internal memory:
  • 0 = No
  • 1 = Yes

Information about the location of master BUFR tables on the local file system is obtained from the most recent call to subroutine mtinfo(), or else from subroutine bfrini() if subroutine mtinfo() was never called, and in which case Fortran logical unit numbers 98 and 99 will be used by this function for opening and reading master BUFR table files.

Author
J. Ator
Date
2009-03-23

Definition at line 35 of file ireadmt.f.

References bort2(), moda_mstabs::cbbw, moda_mstabs::cbelem, moda_mstabs::cbmnem, moda_mstabs::cbscl, moda_mstabs::cbsref, moda_mstabs::cbunit, moda_mstabs::cdmnem, moda_mstabs::cdseq, moda_rdmtb::ceelem, moda_rdmtb::cmdscb, moda_rdmtb::cmdscd, errwrt(), moda_mstabs::ibfxyn, moda_mstabs::idefxy, moda_mstabs::idfxyn, moda_rdmtb::iefxyn, ifxy(), moda_sc3bfr::isc3, istdesc(), iupbs01(), modv_maxcd::maxcd, modv_maxnc::maxnc, moda_bitbuf::mbay, mtfnam(), modv_mxmtbb::mxmtbb, modv_mxmtbd::mxmtbd, moda_mstabs::ndelem, moda_mstabs::nmtb, moda_mstabs::nmtd, rdmtbb(), rdmtbd(), rdmtbf(), and upds3().

Referenced by getcfmng(), reads3(), and ufdump().