|
NCEPLIBS-g2
3.4.7
|
Pack up a data field using a GRIB2 algorithm with missing value management. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | misspack (fld, ndpts, idrsnum, idrstmpl, cpack, lcpack) |
| Pack up a data field using a GRIB2 algorithm with missing value management. More... | |
Pack up a data field using a GRIB2 algorithm with missing value management.
Definition in file misspack.f.
| subroutine misspack | ( | real, dimension(ndpts), intent(in) | fld, |
| integer, intent(in) | ndpts, | ||
| integer, intent(in) | idrsnum, | ||
| integer, dimension(*), intent(inout) | idrstmpl, | ||
| character(len=1), dimension(*), intent(out) | cpack, | ||
| integer, intent(out) | lcpack | ||
| ) |
Pack up a data field using a GRIB2 algorithm with missing value management.
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. Data Representation Tables 5.2 and 5.3).
This subroutine also fills in GRIB2 Data Representation Template 5.2 or 5.3 with the appropriate values. It assumes that Missing Value Management is being used and that 1 or 2 missing values appear in the data.
| [in] | fld | Contains the data values to pack. |
| [in] | ndpts | The number of data values in array fld. |
| [in] | idrsnum | Data Representation Template number. Must equal 2 or 3. |
| [in,out] | idrstmpl | Contains the array of values for Data Representation Template 5.2 or 5.3
|
| [out] | cpack | The packed data field (character*1 array). |
| [out] | lcpack | length of packed field cpack. -1 is returned if idrstmpl(7) is not set correctly. |
Definition at line 44 of file misspack.f.
References g2_sbytec(), g2_sbytesc(), mkieee(), pack_gp(), and rdieee().
Referenced by cmplxpack().