NCEPLIBS-w3emc  2.11.0
getgb1s.f File Reference

Find a grib message. More...

Go to the source code of this file.

Functions/Subroutines

subroutine getgb1s (CBUF, NLEN, NNUM, J, JPDS, JGDS, JENS, K, KPDS, KGDS, KENS, LSKIP, LGRIB, IRET)
 Find a grib message. More...
 

Detailed Description

Find a grib message.

Author
Mark Iredell
Date
1995-10-31

Definition in file getgb1s.f.

Function/Subroutine Documentation

◆ getgb1s()

subroutine getgb1s ( character, dimension(nlen*nnum)  CBUF,
  NLEN,
  NNUM,
  J,
integer, dimension(200)  JPDS,
integer, dimension(200)  JGDS,
integer, dimension(200)  JENS,
  K,
integer, dimension(200)  KPDS,
integer, dimension(200)  KGDS,
integer, dimension(200)  KENS,
  LSKIP,
  LGRIB,
  IRET 
)

Find a grib message.

Find in the index file a reference to the grib message requested. The grib message request specifies the number of messages to skip and the unpacked pds and gds parameters. (A requested parameter of -1 means to allow any value of this parameter to be found.)

Program history log:

  • Mark Iredell 1995-10-31
  • Mark Iredell 2001-06-05 Apply linux port by ebisuzaki.
Parameters
[in]CBUFCharacter*1 (nlen*nnum) buffer containing index data.
[in]NLENInteger length of each index record in bytes.
[in]NNUMInteger number of index records.
[in]JInteger number of messages to skip (=0 to search from beginning).
[in]JPDSInteger (200) pds parameters for which to search (=-1 for wildcard).
[in]JGDSInteger (200) gds parameters for which to search (only searched if jpds(3)=255) (=-1 for wildcard).
[in]JENSInteger (200) ensemble pds parms for which to search (only searched if jpds(23)=2) (=-1 for wildcard).
[out]KInteger message number found (can be same as j in calling program in order to facilitate multiple searches).
[out]KPDSInteger (200) unpacked pds parameters.
[out]KGDSInteger (200) unpacked gds parameters.
[out]KENSInteger (200) unpacked ensemble pds parms.
[out]LSKIPInteger number of bytes to skip.
[out]LGRIBInteger number of bytes to read.
[out]IRETInteger return code.
  • 0 All ok.
  • 1 Request not found.
Note
Subprogram can be called from a multiprocessing environment. This subprogram is intended for private use by getgb routines only.
Author
Mark Iredell
Date
1995-10-31

Definition at line 42 of file getgb1s.f.