Functions for encoding/decoding from/to OPERA ASCII Files


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.

Function Documentation

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.

Parameters:
[in] file Name of the input ASCII file
[in,out] msg BUFR message to contain the coded sections
Returns:
1 on succes, 0 on error
See also:
bufr_data_to_file, bufr_create_msg, bufr_free_data

Definition at line 136 of file bufr_io.c.

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.

Parameters:
[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
Returns:
1 on succes, 0 on error
See also:
bufr_data_from_file, bufr_read_msg
Examples:
apisample.c.

Definition at line 223 of file bufr_io.c.


Generated on Tue Dec 18 16:52:45 2007 for OPERA BUFR software by  doxygen 1.5.4