NCEPLIBS-g2  3.4.5
specunpack.f File Reference

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

Go to the source code of this file.

Functions/Subroutines

subroutine specunpack (cpack, len, idrstmpl, ndpts, JJ, KK, MM, fld)
 This subroutine unpacks a spectral data field that was packed using the complex packing algorithm for spherical harmonic data as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5.51. More...
 

Detailed Description

This subroutine packs up a data field.

Author
Stephen Gilbert
Date
2002-12-19

Definition in file specunpack.f.

Function/Subroutine Documentation

◆ specunpack()

subroutine specunpack ( character(len=1), dimension(len), intent(in)  cpack,
integer, intent(in)  len,
integer, dimension(*), intent(in)  idrstmpl,
integer, intent(in)  ndpts,
integer, intent(in)  JJ,
integer, intent(in)  KK,
integer, intent(in)  MM,
real, dimension(ndpts), intent(out)  fld 
)

This subroutine unpacks a spectral data field that was packed using the complex packing algorithm for spherical harmonic data as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5.51.

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.51.
[in]ndptsThe number of data values in array fld.
[in]JJJ pentagonal resolution parameter.
[in]KKK pentagonal resolution parameter.
[in]MMM pentagonal resolution parameter.
[out]fldContains the unpacked data values.
Author
Stephen Gilbert
Date
2002-12-19

Definition at line 24 of file specunpack.f.