38 if (!(ifld = calloc(ndpts,
sizeof(
g2int))))
40 fprintf(stderr,
"Could not allocate space in simunpack.\n "
41 "Data field NOT upacked.\n");
49 gbits(cpack, ifld, 0, nbits, 0, ndpts);
50 for (j = 0; j < ndpts; j++)
51 fld[j] = (((
g2float)ifld[j] * bscale) + ref) * dscale;
55 for (j = 0; j < ndpts; j++)
void gbits(unsigned char *in, g2int *iout, g2int iskip, g2int nbyte, g2int nskip, g2int n)
Get bits - unpack bits: Extract arbitrary size values from a packed bit string, right justifying each...
Header file for NCEPLIBS-g2c library.
int64_t g2int
Long integer type.
double int_power(double x, g2int y)
Function similar to C pow() power function.
void rdieee(g2int *rieee, g2float *a, g2int num)
This subroutine reads a list of real values in 32-bit IEEE floating point format.
g2int simunpack(unsigned char *cpack, g2int *idrstmpl, g2int ndpts, g2float *fld)
This subroutine unpacks a data field that was packed using a simple packing algorithm as defined in t...