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

Reads and unpacks a grib message. More...

Go to the source code of this file.

Functions/Subroutines

subroutine getgb1re (lugb, lskip, lgrib, kf, kpds, kgds, kens, kprob, xprob, kclust, kmembr, lb, f, iret)
 Reads and unpacks a grib message.
 

Detailed Description

Reads and unpacks a grib message.

Author
Mark Iredell
Date
1995-10-31

Definition in file getgb1re.f.

Function/Subroutine Documentation

◆ getgb1re()

subroutine getgb1re (   lugb,
  lskip,
  lgrib,
  kf,
integer, dimension(200)  kpds,
integer, dimension(200)  kgds,
integer, dimension(200)  kens,
integer, dimension(2)  kprob,
real, dimension(2)  xprob,
integer, dimension(16)  kclust,
integer, dimension(80)  kmembr,
logical*1, dimension(*)  lb,
real, dimension(*)  f,
  iret 
)

Reads and unpacks a grib message.

PROGRAM HISTORY LOG: Mark Iredell 1995-10-31 Y. Zhu 1997-02-11 Included probability and cluster arguments.

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]KPROBInteger (2) probability ensemble parms.
[out]XPROBReal (2) probability ensemble parms.
[out]KCLUSTInteger (16) cluster ensemble parms.
[out]KMEMBRInteger (8) cluster ensemble parms.
[out]LBLogical*1 (kf) unpacked bitmap if present.
[out]FReal (kf) unpacked data.
[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 36 of file getgb1re.f.