47 ifld = calloc(ndpts,
sizeof(
g2int));
50 fprintf(stderr,
"Could not allocate space in jpcunpack.\n Data field NOT upacked.\n");
54 for (j = 0; j < ndpts; j++)
55 fld[j] = (((
g2float)ifld[j] * bscale) + ref) * dscale;
60 for (j = 0; j < ndpts; j++)
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.
int dec_jpeg2000(char *, g2int, g2int *)
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i....
g2int jpcunpack(unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, g2float *fld)
This subroutine unpacks a data field that was packed into a JPEG2000 code stream using info from the ...
void rdieee(g2int *rieee, g2float *a, g2int num)
This subroutine reads a list of real values in 32-bit IEEE floating point format.