NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
nmsub.f File Reference

Get the number of data subsets from a BUFR message. More...

Go to the source code of this file.

Functions/Subroutines

function nmsub (LUNIT)
 This function returns the total number of data subsets available within the BUFR message that was most recently opened for reading via a call to one of the other message-reading subroutines for a specified Fortran logical unit. More...
 

Detailed Description

Get the number of data subsets from a BUFR message.

Definition in file nmsub.f.

Function/Subroutine Documentation

function nmsub (   LUNIT)

This function returns the total number of data subsets available within the BUFR message that was most recently opened for reading via a call to one of the other message-reading subroutines for a specified Fortran logical unit.

The data subsets themselves do not need to have already been read via previous calls to any of the subset-reading subroutines.

Author
J. Woollen
Date
1994-01-06
Parameters
[in]LUNIT- integer: Fortran logical unit number for BUFR file
Returns
nmsub - integer: Number of data subsets

Program history log:

  • 1994-01-06 J. Woollen – Original author
  • 1998-07-08 J. Woollen – Replaced call to Cray library routine ABORT with call to new internal routine bort()
  • 1999-11-18 J. Woollen – The number of BUFR files which can be opened at one time increased from 10 to 32 (necessary in order to process multiple BUFR files under the MPI)
  • 2014-12-10 J. Ator – Use modules instead of COMMON blocks

Definition at line 31 of file nmsub.f.

References bort(), and status().

Referenced by split_by_subset(), ufbmns(), ufbpos(), ufbtab(), and ufbtam().