Functions | |
| int | bufr_data_from_file (char *file, bufr_t *msg) |
| read data and descriptors from ASCII file and code them into sections 3 and 4 | |
| int | bufr_data_to_file (char *file, char *imgfile, bufr_t *msg) |
| Decode data and descriptor sections of a BUFR message and write them to an ASCII file. | |
| int bufr_data_from_file | ( | char * | file, | |
| bufr_t * | msg | |||
| ) |
This function reads descriptors and data from an ASCII file and codes them into a BUFR data descriptor and data section (section 3 and 4). Memory for both sections is allocated in this function and must be freed by the calling functions using bufr_free_data.
| [in] | file | Name of the input ASCII file |
| [in,out] | msg | BUFR message to contain the coded sections |
| int bufr_data_to_file | ( | char * | file, | |
| char * | imgfile, | |||
| bufr_t * | msg | |||
| ) |
This functions decodes data and descriptor sections of a BUFR message and writes them into an ASCII file. If there is an OPERA bitmap (currently descriptors 3 21 192 to 3 21 197, 3 21 200 and 3 21 202) it is written to a seperate file.
| [in] | file | Name of the output ASCII file |
| [in] | imgfile | Name of the output bitmap file(s) |
| [in] | msg | BUFR message to contain the coded sections |
1.5.4