55 void restd( f77int *lun, f77int *tddesc, f77int *nctddesc, f77int ctddesc[] )
59 f77int desc, ncdesc, cdesc[MAXNC];
60 f77int i, j, inum, itbd, ictbd;
61 f77int iscl, iref, ibit;
63 char tab, nemo[9], adn[7], cunit[25];
68 numtbd( lun, tddesc, nemo, &tab, &itbd, 9, 1 );
69 uptdd( &itbd, lun, &i0, &inum );
75 for ( i = 1; i <= inum; i++ ) {
76 uptdd( &itbd, lun, &i, &desc );
81 numtbd( lun, &desc, nemo, &tab, &ictbd, 9, 1 );
87 restd( lun, &desc, &ncdesc, cdesc );
89 if ( ( *nctddesc > 0 ) &&
90 ( ctddesc[(*nctddesc)-1] >
ifxy(
"101000", 6 ) ) &&
91 ( ctddesc[(*nctddesc)-1] <=
ifxy(
"101255", 6 ) ) ) {
97 cadn30( &ctddesc[(*nctddesc)-1], adn, 7 );
98 sprintf( adn,
"%c%02ld%c%c%c",
99 adn[0], (
long) ncdesc, adn[3], adn[4], adn[5] );
100 ctddesc[(*nctddesc)-1] =
ifxy( adn, 7 );
102 else if ( ( *nctddesc > 1 ) &&
103 ( ctddesc[(*nctddesc)-2] ==
ifxy(
"101000", 6 ) ) ) {
109 cadn30( &ctddesc[(*nctddesc)-2], adn, 7 );
110 sprintf( adn,
"%c%02ld%c%c%c",
111 adn[0], (
long) ncdesc, adn[3], adn[4], adn[5] );
112 ctddesc[(*nctddesc)-2] =
ifxy( adn, 7 );
117 for ( j = 0; j < ncdesc; j++ ) {
118 wrdesc( cdesc[j], ctddesc, nctddesc );
122 else if ( tab ==
'B' ) {
127 nemtbb( lun, &ictbd, cunit, &iscl, &iref, &ibit, 25 );
128 sprintf( adn,
"%c%c%c%03ld",
'2',
'0',
'6', (
long) ibit );
130 wrdesc( desc, ctddesc, nctddesc );
138 wrdesc( desc, ctddesc, nctddesc );
Define signatures to enable a number of BUFRLIB subprograms to be called directly from C application ...
void restd(f77int *lun, f77int *tddesc, f77int *nctddesc, f77int ctddesc[])
C C SUBPROGRAM: RESTD C PRGMMR: ATOR ORG: NP12 DATE: 2004-08-18 C C ABSTRACT: GIVEN THE BIT-WISE REPR...
function istdesc(IDN)
GIVEN THE BIT-WISE REPRESENTATION OF THE FXY VALUE FOR A DESCRIPTOR, THIS FUNCTION DETERMINES WHETHER...
subroutine nemtbb(LUN, ITAB, UNIT, ISCL, IREF, IBIT)
THIS SUBROUTINE CHECKS ALL OF THE PROPERTIES (E.G.
subroutine numtbd(LUN, IDN, NEMO, TAB, IRET)
THIS SUBROUTINE SEARCHES FOR AN INTEGER IDN, CONTAINING THE BIT-WISE REPRESENTATION OF A DESCRIPTOR (...
function ifxy(ADSC)
THIS FUNCTION RETURNS THE INTEGER CORRESPONDING TO THE BIT-WISE REPRESENTATION OF AN INPUT CHARACTER ...
subroutine cadn30(IDN, ADN)
GIVEN THE BIT-WISE REPRESENTATION OF THE FXY VALUE FOR A DESCRIPTOR, THIS ROUTINE CALLS FUNCTION ADN3...
void wrdesc(f77int desc, f77int descary[], f77int *ndescary)
C C SUBPROGRAM: WRDESC C PRGMMR: ATOR ORG: NP12 DATE: 2004-08-18 C C ABSTRACT: GIVEN THE BIT-WISE REP...
subroutine uptdd(ID, LUN, IENT, IRET)
THIS SUBROUTINE RETURNS THE BIT-WISE REPRESENTATION OF THE FXY VALUE CORRESPONDING TO...