Enable a number of NCEPLIBS-bufr subprograms to be called from within the C part of the library.
More...
|
| #define | BMCSTR "7777" |
| | Closing string of a BUFR message. More...
|
| |
| #define | BMOSTR "BUFR" |
| | Opening string of a BUFR message. More...
|
| |
| #define | FXY_DRF1 "031000" |
| | Character string containing FXY value for short (1-bit) delayed replication factor. More...
|
| |
| #define | FXY_DRF16 "031002" |
| | Character string containing FXY value for long (16-bit) delayed replication factor. More...
|
| |
| #define | FXY_DRF8 "031001" |
| | Character string containing FXY value for medium (8-bit) delayed replication factor. More...
|
| |
| #define | FXY_DRP1 "360004" |
| | Character string containing FXY value for NCEP Table D local descriptor denoting 1-bit delayed replication of a sequence using < > notation. More...
|
| |
| #define | FXY_DRP16 "360001" |
| | Character string containing FXY value for NCEP Table D local descriptor denoting 16-bit delayed replication of a sequence using ( ) notation. More...
|
| |
| #define | FXY_DRP8 "360002" |
| | Character string containing FXY value for NCEP Table D local descriptor denoting 8-bit delayed replication of a sequence using { } notation. More...
|
| |
| #define | FXY_MAXTB "063255" |
| | Character string containing maximum FXY value for a Table B descriptor. More...
|
| |
| #define | FXY_MINR "101000" |
| | Character string containing minimum FXY value for a replication descriptor. More...
|
| |
| #define | FXY_MINTD "300000" |
| | Character string containing minimum FXY value for a Table D descriptor. More...
|
| |
| #define | FXY_STR_LEN 6 |
| | Size of a character string needed to store an FXY value. More...
|
| |
| #define | NEMO_STR_LEN 8 |
| | Size of a character string needed to store a mnemonic. More...
|
| |
| #define | UNIT_STR_LEN 24 |
| | Size of a character string needed to store the units of a Table B descriptor. More...
|
| |
|
| void | arallocc (void) |
| | Dynamically allocate C language arrays. More...
|
| |
| void | ardllocc (void) |
| | Free all memory that was dynamically allocated during a previous call to subroutine arallocc(). More...
|
| |
| void | backbufr (int nfile) |
| | Backspace a BUFR file by one BUFR message. More...
|
| |
| void | bort_f (char *errstr) |
| | Log one error message and abort application program. More...
|
| |
| 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. More...
|
| |
| void | cewind (int nfile) |
| | Rewind a BUFR file back to its beginning. More...
|
| |
| void | closfb (int nfile) |
| | Close a previously opened BUFR file. More...
|
| |
| int | crdbufr (int nfile, int *bufr, int mxwrd) |
| | Read the next message from a BUFR file that was previously opened for reading. More...
|
| |
| void | cwrbufr (int nfile, int *bufr, int nwrd) |
| | Write a BUFR message into a file that was previously opened for writing. More...
|
| |
| void | dlloctbf (void) |
| | Free all dynamically-allocated memory for internal storage of master Code/Flag table entries. More...
|
| |
| void | elemdx_f (char *card, int lun) |
| | Decode the scale factor, reference value, bit width, and units from a Table B mnemonic definition. More...
|
| |
| int | icvidx (int ii, int jj, int numjj) |
| | Computes a unique 1-dimensional array index from 2-dimensional indices. More...
|
| |
| int | ifxy_f (char *cfxy) |
| | Convert an FXY value from its 6 character representation to its WMO bit-wise representation. More...
|
| |
| int | igetntbi_f (int lun, char *table_type) |
| | Get the next index for storing an entry within an internal DX BUFR table. More...
|
| |
| int | igettdi_f (int iflag) |
| | Get the next usable Table D index for the current master table, or reset the index. More...
|
| |
| int | imrkopr_f (char *nemo) |
| | Check whether a specified mnemonic is a Table C marker operator. More...
|
| |
| int | istdesc_f (int idn) |
| | Check whether a descriptor is WMO-standard. More...
|
| |
| 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. More...
|
| |
| void | openab (int nfile, char *ufile) |
| | Open a new file for appending BUFR messages. More...
|
| |
| void | openrb (int nfile, char *ufile) |
| | Open a new file for reading BUFR messages. More...
|
| |
| void | openwb (int nfile, char *ufile) |
| | Open a new file for writing BUFR messages. More...
|
| |
| void | pktdd_f (int id, int lun, int idn, int *iret) |
| | Store information about a child mnemonic within the internal arrays. More...
|
| |
| void | restd (int lunb, int tddesc, int *nctddesc, int *ctddesc) |
| | Standardize a local Table D descriptor. More...
|
| |
| void | stntbi_f (int n, int lun, char *numb, char *nemo, char *celsq) |
| | Store a new entry within the internal BUFR Table B or D. More...
|
| |
| void | strnum_f (char *str, int *num, int *iret) |
| | Decode an integer from a character string. More...
|
| |
| void | stseq (int lun, int *irepct, int idn, char *nemo, char *cseq, int *cdesc, int ncdesc) |
| | Store information about a Table D descriptor within internal DX BUFR tables. More...
|
| |
| 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 sequence. More...
|
| |
Enable a number of NCEPLIBS-bufr subprograms to be called from within the C part of the library.
This header file defines signatures which wrap a number of native Fortran subprograms in the library. It also contains prototypes for native C functions in the library as well as macros used throughout the C part of the library.
- Author
- J. Ator
- Date
- 2003-11-04
Definition in file bufrlib.h.
Dynamically allocate C language arrays.
This subroutine is called internally during the first call to subroutine openbf() from an application program, in order to dynamically allocate internal C language arrays based on parameter values set during one or more previous calls to function isetprm().
All memory allocated within this subroutine can be freed via a subsequent call to subroutine exitbufr().
- Author
- J. Ator
- Date
- 2014-12-04
Definition at line 30 of file arallocc.c.
References bort_f(), cbbw_c, cbelem_c, cbmnem_c, cbscl_c, cbsref_c, cbunit_c, cdescs, cdmnem_c, cdseq_c, iafpk, iafpks, ibfxyn_c, idefxy_c, idfxyn_c, igetprm_f(), lstpos, MAX_RPSQ, ndelem_c, and pb.
| void restd |
( |
int |
lun, |
|
|
int |
tddesc, |
|
|
int * |
nctddesc, |
|
|
int * |
ctddesc |
|
) |
| |
Standardize a local Table D descriptor.
Given the bit-wise (integer) representation of a local (not WMO-standard) Table D descriptor, this function 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 function. 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.
- Parameters
-
| lun | - File ID |
| tddesc | - WMO bit-wise representation of FXY value for local Table D descriptor |
| nctddesc | - Number of WMO-standard child descriptors returned in ctddesc |
| ctddesc | - Array of WMO-standard child descriptors equivalent to tddesc |
- Author
- J. Ator
- Date
- 2004-08-18
Definition at line 73 of file restd.c.
References bort_f(), cadn30_f(), FXY_MINR, FXY_STR_LEN, moda_bitbuf::ibit, ifxy_f(), igetprm_f(), imrkopr_f(), istdesc_f(), NEMO_STR_LEN, nemtbb_f(), numtbd_f(), UNIT_STR_LEN, uptdd_f(), and wrdesc().
| void stseq |
( |
int |
lun, |
|
|
int * |
irepct, |
|
|
int |
idn, |
|
|
char * |
nemo, |
|
|
char * |
cseq, |
|
|
int * |
cdesc, |
|
|
int |
ncdesc |
|
) |
| |
Store information about a Table D descriptor within internal DX BUFR tables.
Given the WMO bit-wise (integer) representation of a Table D descriptor, this function uses the master BUFR tables to store all of the necessary information for that descriptor within the internal DX BUFR tables. Any child descriptors which are themselves Table D descriptors are automatically resolved via a recursive call to this same function.
- Parameters
-
| lun | - File ID |
| irepct | - Replication sequence counter for the current master table; used internally to keep track of which sequence names have already been defined, and thereby avoid contention within the internal DX BUFR Table D |
| idn | - WMO bit-wise representation of FXY value for Table D descriptor |
| nemo | - Mnemonic corresponding to idn |
| cseq | - Description corresponding to idn |
| cdesc | - Array of child descriptors equivalent to idn |
| ncdesc | - Number of child descriptors in cdesc |
- Author
- J. Ator
- Date
- 2009-03-23
Definition at line 189 of file stseq.c.
References bort_f(), cadn30_f(), cbbw_c, cbelem_c, cbmnem_c, cbscl_c, cbsref_c, cbunit_c, cdmnem_c, cdseq_c, elemdx_f(), FXY_DRF1, FXY_DRF16, FXY_DRF8, FXY_DRP1, FXY_DRP16, FXY_DRP8, FXY_MAXTB, FXY_MINR, FXY_MINTD, FXY_STR_LEN, iafpk, icvidx(), idefxy_c, ifxy_f(), igetntbi_f(), igetprm_f(), igettdi_f(), imrkopr_f(), ndelem_c, NEMO_STR_LEN, nemtab_f(), nrpsq, nummtb(), numtbd_f(), pktdd_f(), srchrpsq(), stntbi_f(), strnum_f(), and strrpsq().