reduce.c(3) | Library Functions Manual | reduce.c(3) |
reduce.c - Determines whether the number of groups should be increased in order to reduce the size of the large groups, and to make that adjustment.
#include 'grib2_int.h'
#include <stdlib.h>
int reduce (g2int *kfildo, g2int *jmin,
g2int *jmax, g2int *lbit, g2int *nov, g2int *lx,
g2int *ndg, g2int *ibit, g2int *jbit, g2int
*kbit, g2int *novref, g2int *ibxx2, g2int *ier)
Determines whether the number of groups should be increased in order to reduce
the size of the large groups, and to make that adjustment.
Determines whether the number of groups should be increased in order to reduce the size of the large groups, and to make that adjustment.
Author
Date
Definition in file reduce.c.
Determines whether the number of groups should be increased in order to reduce the size of the large groups, and to make that adjustment. By reducing the size of the large groups, less bits may be necessary for packing the group sizes and all the information about the groups.
The reference for nov was removed in the calling routine so that kbit could be determined. This furnishes a starting point for the iterations in reduce. However, the reference must be considered.
PROGRAM HISTORY LOG
DATA SET USE
Parameters
Returns
ntotbt(j) = the total bits used for the packing bits j (j=1,30). (internal) nboxj(j) = new boxes needed for the packing bits j (j=1,30). (internal) newbox(l) = number of new boxes (groups) for each original group (l=1,lx) for the current j. (automatic) (internal) newboxp(l) = same as newbox() but for the previous j. this eliminates recomputation. (automatic) (internal) cfeed = contains the character representation of a printer form feed. (character) (internal) ifeed = contains the g2int value of a printer form feed. (internal) iorigb = the original number of bits necessary for the group values. (internal)
Author
Date
Definition at line 88 of file reduce.c.
Referenced by pack_gp().
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Version 2.1.0 | NCEPLIBS-g2c |