seekgb.c(3)
π seekgb.c π
okay so bestie, welcome to seekgb.c(3) β she's a page out of the Library Functions Manual, and her whole personality is hunting down GRIB messages in a file. let's get into it. β¨
πΈ NAME πΈ
seekgb.c β Search a file for the next GRIB message.
π¦ SYNOPSIS π¦
#include 'grib2_int.h'
#include <stdio.h>
#include <stdlib.h>
π Functions π
void seekgb (FILE *lugb, g2int iseek, g2int mseek, g2int *lskip, g2int *lgrib)β Search a file for the next GRIB Message.
π Detailed Description π
Search a file for the next GRIB message. that's the whole mission, and honestly? she ate. π
Author: Stephen Gilbert
Date: 2002-10-28
π Program History Log π
- 2002-10-28 β GILBERT β Modified from Iredell's skgb subroutine
- 2009-01-16 β VUONG β Changed lskip to 4 instead of sizof(g2int)
- 2022-09-11 β Hartnett β Added
g2c_seekgb()function.
Definition in file seekgb.c.
π Function Documentation π
π« void seekgb (FILE * lugb, g2int iseek, g2int mseek, g2int * lskip, g2int * lgrib) π«
Search a file for the next GRIB Message. The search kicks off at byte offset iseek of the file that lugb points at, and it looks at mseek bytes at a time. If she finds a message, the starting position and the length of that message come back to you in lskip and lgrib, respectively. The search is terminated the moment an EOF or an I/O error shows up. π
ποΈ Program History Log ποΈ
- 2002-10-28 β GILBERT β Modified from Iredell's skgb subroutine
- 2009-01-16 β VUONG β Changed lskip to 4 instead of sizof(g2int)
π«Ά Parameters π«Ά
lugbβ FILE pointer for the file to search. bestie, the file must be opened before this routine is called, no exceptions. πiseekβ The number of bytes in the file to skip before search.mseekβ The maximum number of bytes to search at a time (must be at least16, but larger numbers like4092will result in better perfomance).lskipβ Pointer that gets the number of bytes to skip from the beggining of the file to where the GRIB message starts.lgribβ Pointer that gets the number of bytes in message (set to0, if no message found).
Author: Stephen Gilbert
Date: 2002-10-28
Definition at line 46 of file seekgb.c.
References BYTE, gbit(), and LOG.
Referenced by g2c_get_msg().
π Author π
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
and that's the page, bestie!! NCEPLIBS-g2c, Version 2.3.0, page seekgb.c(3) β she's iconic, she's automatic, she's generated by Doxygen and she's got main character energy. slay, go find those GRIB messages. π¦ππ
π¦ where this page comes from
- ubuntu resolute: libg2c-dev 2.3.0-4 Β· LGPL-3.0-only
- ubuntu stonking: libg2c-dev 2.3.0-7 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms