Functions | |
| void | bufr_clean (void) |
| int | setup_sec0125 (char *sec[], size_t secl[], sect_1_t s1) |
| int | save_sections (char **sec, size_t *secl, char *buffile) |
| int | val_to_array (varfl **vals, varfl v, size_t *nvals) |
| int | rlenc (char *infile, int nrows, int ncols, varfl **vals, size_t *nvals) |
| Runlength-encodes a radar image. | |
| int | rlenc_compress_line (int line, unsigned char *src, int ncols, varfl **dvals, size_t *nvals) |
| Encodes one line of a radar image to BUFR runlength-code. | |
| int | rldec (char *outfile, varfl *vals, size_t *nvals) |
| Decodes a BUFR-runlength-encoded radar image. | |
| void bufr_clean | ( | void | ) |
| int setup_sec0125 | ( | char * | sec[], | |
| size_t | secl[], | |||
| sect_1_t | s1 | |||
| ) |
| [in,out] | sec | Sections 0 - 5 |
| [in,out] | secl | Lengths of sections 0 - 5 |
| [in] | s1 | Data to be put into Section 1 |
| int save_sections | ( | char ** | sec, | |
| size_t * | secl, | |||
| char * | buffile | |||
| ) |
| [in] | sec | Poiter-Array to the 6 sections. |
| [in] | secl | Length of the sections. |
| [in] | buffile | Output-File |
| [in,out] | vals | The array containing the values |
| [in] | v | The value to be put into the array |
| [in,out] | nvals | Number of values in the array |
| int rlenc | ( | char * | infile, | |
| int | nrows, | |||
| int | ncols, | |||
| varfl ** | vals, | |||
| size_t * | nvals | |||
| ) |
This function encodes a "one byte per pixel" radar image to BUFR runlength- code and stores the resulting values by a call to VAL_TO_ARRAY.
| [in] | infile | File holding the "one byte per pixel" radar image. |
| [in] | ncols | Number of columns of the image. |
| [in] | nrows | Number of rows of the image. |
| [in,out] | vals | Float-array holding the coded image. |
| [in,out] | nvals | Number of values in VALS. |
| int rlenc_compress_line | ( | int | line, | |
| unsigned char * | src, | |||
| int | ncols, | |||
| varfl ** | dvals, | |||
| size_t * | nvals | |||
| ) |
This function encodes one line of a radar image to BUFR runlength-code and stores the resulting values by a call to val_to_array.
| [in] | line | Line number. |
| [in] | src | Is where the uncompressed line is stored. |
| [in] | ncols | Number of pixels per line. |
| [in,out] | dvals | Float-array holding the coded image. |
| [in,out] | nvals | Number of values in VALS. |
| int rldec | ( | char * | outfile, | |
| varfl * | vals, | |||
| size_t * | nvals | |||
| ) |
This function decodes a BUFR-runlength-encoded radar image stored at VALS. The decoded image is stored in a one "byte-per-pixel-format" at the file OUTFILE.
| [in] | outfile | Destination-file for the "one byte per pixel" radar image. |
| [in] | vals | Float-array holding the coded image. |
| [in] | nvals | Number of values needed for the radar image. |
1.5.4