GBYTE

The GBYTE routine unpacks a byte into a target word.  The
          unpacked byte is right-justified in the target word, and the 
          remainder of the word is zero-filled.

USAGE:  CALL GBYTE(IPACKD,IUNPKD,NOFF,NBITS)

   Input argument list:
      IPACKD   THE WORD OR ARRAY CONTAINING THE BYTE TO BE UNPACKED.
      IUNPKD   THE WORD WHICH WILL CONTAIN THE UNPACKED BYTE.
      NOFF     THE NUMBER OF BITS TO SKIP, LEFT TO RIGHT, IN 'IPACKD' 
               IN ORDER TO LOCATE THE BYTE TO BE UNPACKED.
      NBITS    NUMBER OF BITS IN THE BYTE TO BE UNPACKED. MAXIMUM OF
               64 BITS ON 64 BIT MACHINE, 32 BITS ON 32 BIT MACHINE.

   Output argument list:
      IUNPKD   CONTAINS THE REQUESTED UNPACKED BYTE.

 
W3lib.tar Library contains Fortran 90 decoder/encoder routines for GRIB edition 1. (Fortran90)
Date posted: 2/22/2007