NCEPLIBS-bufr  12.0.0
nemspecs.f File Reference

Get the scale factor, reference value and bit width associated with a specified occurrence of a Table B mnemonic. More...

Go to the source code of this file.

Functions/Subroutines

recursive subroutine nemspecs (LUNIT, NEMO, NNEMO, NSCL, NREF, NBTS, IRET)
 Given a Table B mnemonic defined within a data subset, this subroutine returns the scale factor, reference value and bit width of a specified occurrence of that mnemonic within the overall data subset definition, counting from the beginning of the subset. More...
 

Detailed Description

Get the scale factor, reference value and bit width associated with a specified occurrence of a Table B mnemonic.

Author
J. Ator
Date
2014-10-02

Definition in file nemspecs.f.

Function/Subroutine Documentation

◆ nemspecs()

recursive subroutine nemspecs (   LUNIT,
character*(*)  NEMO,
  NNEMO,
  NSCL,
  NREF,
  NBTS,
  IRET 
)

Given a Table B mnemonic defined within a data subset, this subroutine returns the scale factor, reference value and bit width of a specified occurrence of that mnemonic within the overall data subset definition, counting from the beginning of the subset.

The values returned include the application of any Table C operators (e.g. 2-01-YYY, 2-02-YYY, 2-03-YYY, 2-07-YYY, 2-08-YYY) which may be in effect for the specified occurrence of the mnemonic.

Parameters
[in]LUNIT- integer: Fortran logical unit number for BUFR file
[in]NEMO- character*(*): Table B mnemonic
[in]NNEMO- integer: Ordinal occurrence of NEMO for which information is to be returned, counting from the beginning of the overall subset definition
[out]NSCL- integer: Scale factor in effect for (NNEMO)th occurrence of NEMO
[out]NREF- integer: Reference value in effect for (NNEMO)th occurrence of NEMO
[out]NBTS- integer: Bit width in effect for (NNEMO)th occurrence of NEMO
[out]IRET- integer: return code
  • 0 normal return
  • -1 NEMO could not be found, or some other error occurred

A data subset must already be in scope within the BUFRLIB internal arrays for LUNIT, either via a previous call to one of the subset-reading subroutines (when reading BUFR data subsets) or via a previous call to one of the message-writing subroutines (when writing BUFR data subsets).

Author
J. Ator
Date
2014-10-02

Definition at line 45 of file nemspecs.f.

References fstag(), moda_tables::ibt, moda_nrv203::ienrv, modv_im8b::im8b, moda_msgcwd::inode, moda_nrv203::inodnrv, moda_usrint::inv, moda_tables::irf, moda_tables::isc, moda_nrv203::isnrv, moda_nrv203::nnrv, moda_nrv203::nrv, status(), strsuc(), moda_nrv203::tagnrv, moda_tables::typ, x48(), and x84().

Referenced by bufr_c2f_interface::nemspecs_c().