seekgb.c(3)

πŸ“¦
version 2.3.0 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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 least 16, but larger numbers like 4092 will 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 to 0, 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