Loading...
Searching...
No Matches
cmplxpack.c
Go to the documentation of this file.
#include "grib2_int.h"
void
cmplxpack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl,
unsigned char *cpack, g2int *lcpack)
{
if (idrstmpl[6] == 0) /* No internal missing values */
compack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack);
else if (idrstmpl[6] == 1 || idrstmpl[6] == 2)
misspack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack);
else
{
printf("cmplxpack: Don:t recognize Missing value option.");
*lcpack = -1;
}
}
cmplxpack
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
compack
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
g2int
int64_t g2int
Long integer type.
Definition grib2.h:32
grib2_int.h
Header file with internal function prototypes NCEPLIBS-g2c library.
misspack
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