NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
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.
 

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.