NCEPLIBS-bufr  12.0.1
rdmgsb.f File Reference

Read a specified data subset from a BUFR file. More...

Go to the source code of this file.

Functions/Subroutines

recursive subroutine rdmgsb (LUNIT, IMSG, ISUB)
 Read a specified data subset from a BUFR file. More...
 

Detailed Description

Read a specified data subset from a BUFR file.

Author
J. Woollen
Date
2003-11-04

Definition in file rdmgsb.f.

Function/Subroutine Documentation

◆ rdmgsb()

recursive subroutine rdmgsb (   LUNIT,
  IMSG,
  ISUB 
)

Read a specified data subset from a BUFR file.

This subroutine combines the functionality of openbf(), readmg(), and readsb().

Logical unit LUNIT should not have already been opened via a previous call to subroutine openbf(). This subroutine will open the file for input.

Whenever this subroutine returns successfully, this indicates that a new data subset was successfully read into internal arrays within the NCEPLIBS-bufr software, and that subsequent calls can immediately be made to any of the various values-reading subroutines.

Note that the value specified for IMSG should not include any DX BUFR table messages which may be present in the file. In other words, a value of 12 for IMSG means to read the 12th message which contains actual report data.

Parameters
[in]LUNIT- integer: Fortran logical unit number for BUFR file.
[in]IMSG- integer: Number of BUFR message to be read from the BUFR file, counting from the beginning of the file, but not counting any DX BUFR table messages which may be present in the file
[in]ISUB- integer: Number of data subset to be read from the (IMSG)th BUFR message, counting from the beginning of the message
Author
J. Woollen
Date
2003-11-04

Definition at line 34 of file rdmgsb.f.

References bort(), modv_im8b::im8b, openbf(), readmg(), readsb(), status(), and x84().