NCEPLIBS-w3emc  2.11.0
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. More...
 

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.