NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
getgb1r.f File Reference

Reads and unpacks a grib message. More...

Go to the source code of this file.

Functions/Subroutines

subroutine getgb1r (lugb, lskip, lgrib, kf, kpds, kgds, kens, lb, f, nbitss, iret)
 Program history log:
 

Detailed Description

Reads and unpacks a grib message.

Author
Mark Iredell
Date
1995-10-31

Definition in file getgb1r.f.

Function/Subroutine Documentation

◆ getgb1r()

subroutine getgb1r (   lugb,
  lskip,
  lgrib,
  kf,
integer, dimension(200)  kpds,
integer, dimension(200)  kgds,
integer, dimension(200)  kens,
logical*1, dimension(*)  lb,
real, dimension(*)  f,
  nbitss,
  iret 
)

Program history log:

  • Mark Iredell 1995-10-31
  • Chuang 2004-07-22 Add packing bit number nbitss in the argument list because eta grib files need it to repack grib file.
    Parameters
    [in]LUGBInteger unit of the unblocked grib data file.
    [in]LSKIPInteger number of bytes to skip.
    [in]LGRIBInteger number of bytes to read.
    [out]KFInteger number of data points unpacked.
    [out]KPDSInteger (200) unpacked pds parameters.
    [out]KGDSInteger (200) unpacked gds parameters.
    [out]KENSInteger (200) unpacked ensemble pds parms.
    [out]LBLogical*1 (kf) unpacked bitmap if present.
    [out]FReal (kf) unpacked data.
    [out]NBITSSPackaging bit number. Used by GRIB file to repack.
    [out]IRETInteger return code.
  • 0 All ok.
  • 97 Error reading grib file.
  • other w3fi63 grib unpacker return code.
Note
There is no protection against unpacking too much data. Subprogram can be called from a multiprocessing environment. Do not engage the same logical unit from more than one processor. This subprogram is intended for private use by getgb routines only.
Author
Mark Iredell
Date
1995-10-31

Definition at line 32 of file getgb1r.f.