|
NCEPLIBS-g2
3.4.7
|
Pack up a data field using simple packing algorithm. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | simpack (fld, ndpts, idrstmpl, cpack, lcpack) |
| Pack up a data field using a simple packing algorithm as defined in the GRIB2 documention. More... | |
| subroutine simpack | ( | real, dimension(ndpts), intent(in) | fld, |
| integer, intent(in) | ndpts, | ||
| integer, dimension(*), intent(inout) | idrstmpl, | ||
| character(len=1), dimension(*), intent(out) | cpack, | ||
| integer, intent(out) | lcpack | ||
| ) |
Pack up a data field using a simple packing algorithm as defined in the GRIB2 documention.
It also fills in GRIB2 Data Representation Template 5.0 with the appropriate values.
| [in] | fld | Contains the data values to pack. |
| [in] | ndpts | The number of data values in array fld. |
| [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. |
Definition at line 25 of file simpack.f.
References g2_sbytec(), g2_sbytesc(), and mkieee().
Referenced by addfield(), and specpack().