NCEPLIBS-g2  3.4.8
simunpack.F90 File Reference

This subroutine packs up a data field. More...

Go to the source code of this file.

Functions/Subroutines

subroutine simunpack (cpack, len, idrstmpl, ndpts, fld)
 This subroutine unpacks a data field that was packed using a simple packing algorithm as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5.0. More...
 

Detailed Description

This subroutine packs up a data field.

Author
Stephen Gilbert
Date
2000-06-21

Definition in file simunpack.F90.

Function/Subroutine Documentation

◆ simunpack()

subroutine simunpack ( character(len=1), dimension(len), intent(in)  cpack,
integer, intent(in)  len,
integer, dimension(*), intent(in)  idrstmpl,
integer, intent(in)  ndpts,
real, dimension(ndpts), intent(out)  fld 
)

This subroutine unpacks a data field that was packed using a simple packing algorithm as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5.0.

Parameters
[in]cpackThe packed data field (character*1 array).
[in]lenlength of packed field cpack.
[in]idrstmplContains the array of values for Data Representation Template 5.0.
[in]ndptsThe number of data values to unpack.
[out]fldContains the unpacked data values.
Author
Stephen Gilbert
Date
2000-06-21

Definition at line 18 of file simunpack.F90.

References g2_gbytesc(), and rdieee().

Referenced by getfield(), and gf_unpack7().