table of contents
misspack.c(3) | NCEPLIBS-g2c | misspack.c(3) |
NAME¶
misspack.c - Pack up a data field using a complex packing algorithm as defined in the GRIB2 documention.
SYNOPSIS¶
#include <stdlib.h>
#include <math.h>
#include 'grib2.h'
Functions¶
void misspack (g2float *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 documention.
Detailed Description¶
Pack up a data field using a complex packing algorithm as defined in the GRIB2 documention.
Author
Date
Definition in file misspack.c.
Function Documentation¶
void misspack (g2float * 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 documention. It supports GRIB2 complex packing templates with or without spatial differences (i.e. DRTs 5.2 and 5.3). It also fills in GRIB2 Data Representation Template 5.2 or 5.3 with the appropriate values. This version assumes that Missing Value Management is being used and that 1 or 2 missing values appear in the data.
Parameters
ndpts The number of data values in array fld
idrsnum Data Representation Template number 5.N Must equal 2 or 3.
idrstmpl Contains the array of values for Data Representation Template 5.2 or 5.3.
- 0 Reference value - ignored on input, set by misspack routine.
- 1 Binary Scale Factor - used on input.
- 2 Decimal Scale Factor- used on input.
- 6 Missing value management.
- 7 Primary missing value.
- 8 Secondary missing value.
- 16 Order of Spatial Differencing (1 or 2).
cpack The packed data field (character*1 array).
lcpack length of packed field cpack.
Author
Date
Definition at line 38 of file misspack.c.
References int_power(), mkieee(), pack_gp(), rdieee(), sbit(), and sbits().
Referenced by cmplxpack().
Author¶
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Tue May 3 2022 | Version 1.6.4 |