39 restd(
int lun,
int tddesc,
int *nctddesc,
int *ctddesc)
41 int desc, ncdesc, cdesc[
MAXNC];
42 int i, j, inum, itbd, ictbd;
57 for ( i = 1; i <= inum; i++ ) {
69 restd(lun, desc, &ncdesc, cdesc);
71 if ( ( *nctddesc > 0 ) &&
73 ( ctddesc[(*nctddesc)-1] <=
ifxy_f(
"101255") ) ) {
80 sprintf(cwork,
"%c%02d%c%c%c",
81 adn[0], ncdesc, adn[3], adn[4], adn[5]);
82 strncpy(adn, cwork, 6); adn[6] =
'\0';
83 ctddesc[(*nctddesc)-1] =
ifxy_f(adn);
85 else if ( ( *nctddesc > 1 ) &&
93 sprintf(cwork,
"%c%02d%c%c%c",
94 adn[0], ncdesc, adn[3], adn[4], adn[5]);
95 strncpy(adn, cwork, 6); adn[6] =
'\0';
96 ctddesc[(*nctddesc)-2] =
ifxy_f(adn);
101 for ( j = 0; j < ncdesc; j++ ) {
102 wrdesc(cdesc[j], ctddesc, nctddesc);
106 else if ( tab ==
'B' ) {
112 sprintf(cwork,
"%c%c%c%03d",
'2',
'0',
'6',
ibit);
113 strncpy(adn, cwork, 6); adn[6] =
'\0';
115 wrdesc(desc, ctddesc, nctddesc);
123 wrdesc(desc, ctddesc, nctddesc);
void nemtbb_f(int lun, int table_idx, char *unit_str, int unit_str_len, int *scale, int *reference, int *bits)
Get information about a Table B descriptor.
Enable a number of NCEPLIBS-bufr subprograms to be called from within the C part of the library.
void cadn30_f(int idn, char *adn, int adn_str_len)
Convert an FXY value from its WMO bit-wise representation to its six-character representation.
#define FXY_STR_LEN
Size of a character string needed to store an FXY value.
void numtbd_f(int lun, int idn, char *nemo, int nemo_str_len, char *tab, int *iret)
Search for a Table B or Table D descriptor within the internal DX BUFR tables.
#define MIN_FXY_REPL
Character string containing minimum FXY value for a replication descriptor.
#define UNIT_STR_LEN
Size of a character string needed to store the units of a Table B descriptor.
int ifxy_f(char *cfxy)
Convert an FXY value from its 6 character representation to its WMO bit-wise representation.
#define NEMO_STR_LEN
Size of a character string needed to store a mnemonic.
#define MAXNC
Maximum number of descriptors within Section 3 of a BUFR message.
void uptdd_f(int id, int lun, int ient, int *iret)
Get the WMO bit-wise representation of the FXY value corresponding to a child mnemonic of a Table D s...
int istdesc_f(int idn)
Check whether a descriptor is WMO-standard.
integer ibit
Bit pointer within IBAY.
void restd(int lun, int tddesc, int *nctddesc, int *ctddesc)
Standardize a local Table D descriptor.
void wrdesc(int desc, int *descary, int *ndescary)
Maintain an array of descriptors.