NCEPLIBS-g2  3.4.7
comunpack.f File Reference

Unpack a data field that was packed using a complex packing algorithm as defined in the GRIB2 documention. More...

Go to the source code of this file.

Functions/Subroutines

subroutine comunpack (cpack, len, lensec, idrsnum, idrstmpl, ndpts, fld, ier)
 Unpack a data field that was packed using a complex packing algorithm as defined in the GRIB2 documention. More...
 

Detailed Description

Unpack a data field that was packed using a complex packing algorithm as defined in the GRIB2 documention.

Author
Stephen Gilbert
Date
2000-06-21

Definition in file comunpack.f.

Function/Subroutine Documentation

◆ comunpack()

subroutine comunpack ( character(len=1), dimension(len), intent(in)  cpack,
integer, intent(in)  len,
  lensec,
  idrsnum,
integer, dimension(*), intent(in)  idrstmpl,
integer, intent(in)  ndpts,
real, dimension(ndpts), intent(out)  fld,
  ier 
)

Unpack a data field that was packed using a complex packing algorithm as defined in the GRIB2 documention.

This subroutine Supports GRIB2 complex packing templates with or without spatial differences: It supports GRIB2 complex packing templates with or without spatial differences: Data Representation Tables 5.2 and 5.3).

Parameters
[in]cpackThe packed data field (character*1 array).
[in]lenLength of packed field cpack.
[in]lensecLength of section 7 (used for error checking).
[in]idrsnumData Representation Template number 5.N. Must equal 2 or 3.
[in]idrstmplThe array of values for Data Representation Template 5.2 or 5.3.
[in]ndptsThe number of data values to unpack.
[out]fldContains the unpacked data values.
[out]ierError return:
  • 0 = No error.
  • 1 = Problem - inconsistent group lengths of widths.
Author
Stephen Gilbert
Date
2000-06-21

Definition at line 31 of file comunpack.f.

References g2_gbytec(), g2_gbytesc(), and rdieee().

Referenced by getfield(), and gf_unpack7().