NCEPLIBS-g2  3.5.0
g2spec.F90 File Reference

Pack/unpack a spectral data field using the complex packing algorithm for spherical harmonic data as defined in Data Representation Template 5.51. More...

Go to the source code of this file.

Functions/Subroutines

subroutine specpack (fld, ndpts, JJ, KK, MM, idrstmpl, cpack, lcpack)
 Pack a spectral data field using the complex packing algorithm for spherical harmonic data as defined in Data Representation Template 5.51. More...
 
subroutine specunpack (cpack, len, idrstmpl, ndpts, JJ, KK, MM, fld)
 Unpack a spectral data field using the complex packing algorithm for spherical harmonic data, Data Representation Template 5.51. More...
 

Detailed Description

Pack/unpack a spectral data field using the complex packing algorithm for spherical harmonic data as defined in Data Representation Template 5.51.

Author
Stephen Gilbert
Date
2002-12-19

Definition in file g2spec.F90.

Function/Subroutine Documentation

◆ specpack()

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

Pack a spectral data field using the complex packing algorithm for spherical harmonic data as defined in Data Representation Template 5.51.

Parameters
[in]fldContains the data values to pack.
[in]ndptsThe number of data values in array fld.
[in]JJJ pentagonal resolution parameter.
[in]KKK pentagonal resolution parameter.
[in]MMM pentagonal resolution parameter.
[in]idrstmplContains the array of values for Data Representation Template 5.51.
[out]cpackThe packed data field (character*1 array).
[out]lcpacklength of packed field cpack.
Author
Stephen Gilbert
Date
2002-12-19

Definition at line 24 of file g2spec.F90.

References mkieee(), and simpack().

Referenced by addfield().

◆ 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 
)

Unpack a spectral data field using the complex packing algorithm for spherical harmonic data, 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 123 of file g2spec.F90.

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

Referenced by gf_unpack7().