g2_info.c(3)

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

✨ NAME ✨

g2_info.c β€” bestie, this one searches through a GRIB2 message and hands you back the number of gridded fields it found in there, plus the number (and the maximum size) of Local Use Sections. πŸ’–


🌸 SYNOPSIS 🌸

#include 'grib2_int.h'
#include <stdio.h>
#include <stdlib.h>

πŸ¦‹ Functions

  • g2int g2_info (unsigned char *cgrib, g2int *listsec0, g2int *listsec1, g2int *numfields, g2int *numlocal) β€” Search through a GRIB2 message and return the number of gridded fields found in the message and the number (and maximum size) of Local Use Sections.

πŸ‘‘ Detailed Description πŸ‘‘

Okay so literally what this does: it searches through a GRIB2 message and returns the number of gridded fields found in the message, plus the number (and maximum size) of Local Use Sections. πŸ’…

Author Stephen Gilbeert

Date 2002-10-28

Definition in file g2_info.c.


πŸ”₯ Function Documentation πŸ”₯

⭐ g2int g2_info (unsigned char * cgrib, g2int * listsec0, g2int * listsec1, g2int * numfields, g2int * numlocal)

Search through a GRIB2 message and return the number of gridded fields found in the message and the number (and maximum size) of Local Use Sections. Other checks are performed too, to see if the message is a valid GRIB2 message. vibe check on your GRIB2, basically. 🫢

πŸŽ€ Parameters

🌈 Returns

0 for success. Otherwise, bestie, you get one of these:

  • G2_INFO_NO_GRIB β€” Beginning characters "GRIB" not found.
  • G2_INFO_GRIB_VERSION β€” GRIB message is not Edition 2.
  • G2_INFO_NO_SEC1 β€” Could not find Section 1, where expected.
  • G2_INFO_WRONG_END β€” End string "7777" found, but not where expected.
  • G2_INFO_BAD_END β€” End string "7777" not found at end of message.
  • G2_INFO_INVAL_SEC β€” Invalid section number found.

Author Stephen Gilbeert

Date 2002-10-28

Definition at line 70 of file g2_info.c.

References G2_INFO_BAD_END, G2_INFO_GRIB_VERSION, G2_INFO_INVAL_SEC, G2_INFO_NO_GRIB, G2_INFO_NO_SEC1, G2_INFO_WRONG_END, gbit(), and LOG.


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.


and that's the whole page, no cap. πŸ§šπŸ’–

NCEPLIBS-g2c, Version 2.3.0 β€” okay slay, that's the version and the source right there, and the date on this whole thing is the manpage date up top. mwah. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from