NCEPLIBS-bufr
11.7.0
|
Standardize a local Table D descriptor. More...
#include "bufrlib.h"
Go to the source code of this file.
Functions | |
void | restd (f77int *lun, f77int *tddesc, f77int *nctddesc, f77int ctddesc[]) |
Given the bit-wise (integer) representation of a local (not WMO-standard) Table D descriptor, this subroutine returns an equivalent array of WMO-standard child descriptors. More... | |
Standardize a local Table D descriptor.
Definition in file restd.c.
void restd | ( | f77int * | lun, |
f77int * | tddesc, | ||
f77int * | nctddesc, | ||
f77int | ctddesc[] | ||
) |
Given the bit-wise (integer) representation of a local (not WMO-standard) Table D descriptor, this subroutine returns an equivalent array of WMO-standard child descriptors.
Any child descriptors which are themselves local Table D descriptors are automatically resolved via a recursive call to this same subroutine. This recursive process continues until all child descriptors are either WMO-standard descriptors (from Table B, Table C, Table D, or replication descriptors) or else are local Table B descriptors, in which case they are preceded with an appropriate 2-06-YYY Table C operator in the output array. The output array is then useable by any standard BUFR decoder program in order to interpret the same data values as were represented by the input local Table D descriptor.
[in] | lun | – f77int*: Internal Fortran I/O stream index associated with BUFR file |
[in] | tddesc | – f77int*: Bit-wise representation of FXY value for local Table D descriptor |
[out] | nctddesc | – f77int*: Number of WMO-standard child descriptors returned in ctddesc |
[out] | ctddesc | – f77int*: Array of WMO-standard child descriptors equivalent to tddesc |
Program history log:
Date | Programmer | Comments |
---|---|---|
2004-08-18 | J. Ator | Original author |
2012-04-30 | J. Ator | Use long cast for ibit in sprintf stmt |
2021-08-18 | J. Ator | Use cwork to silence superfluous GNU compiler warnings |
Definition at line 43 of file restd.c.
References cadn30(), ifxy(), istdesc(), nemtbb(), numtbd(), uptdd(), and wrdesc().
Referenced by stndrd().