NCEPLIBS-g2c 2.0.0
Loading...
Searching...
No Matches
cmplxpack.c
Go to the documentation of this file.
1
6#include "grib2_int.h"
7
36void
37cmplxpack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl,
38 unsigned char *cpack, g2int *lcpack)
39{
40 if (idrstmpl[6] == 0) /* No internal missing values */
41 compack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack);
42 else if (idrstmpl[6] == 1 || idrstmpl[6] == 2)
43 misspack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack);
44 else
45 {
46 printf("cmplxpack: Don:t recognize Missing value option.");
47 *lcpack = -1;
48 }
49}
void cmplxpack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl, unsigned char *cpack, g2int *lcpack)
Pack up a data field using a complex packing algorithm.
Definition cmplxpack.c:37
void compack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl, unsigned char *cpack, g2int *lcpack)
Pack a data field using a complex packing algorithm.
Definition compack.c:42
int64_t g2int
Long integer type.
Definition grib2.h:32
Header file with internal function prototypes NCEPLIBS-g2c library.
void misspack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl, unsigned char *cpack, g2int *lcpack)
Pack a data field using a complex packing algorithm.
Definition misspack.c:43