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