g2_unpack5.c(3)

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

πŸ’– g2_unpack5.c β€” Library Functions Manual πŸ’–

okay bestie, we're looking at g2_unpack5.c(3) from the Library Functions Manual and honestly? it's giving "small file, big job" energy. it unpacks Section 5, aka the Data Representation Section, of a GRIB2 message. let's get into it ✨


🌸 NAME 🌸

g2_unpack5.c β€” Unpack Section 5 (Data Representation Section) of a GRIB2 message.

like. that's the whole thing. she does one thing and she does it well πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

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

✨ Functions ✨

  • g2int g2_unpack5 (unsigned char *cgrib, g2int *iofst, g2int *ndpts, g2int *idrsnum, g2int **idrstmpl, g2int *mapdrslen) β€” Unpack Section 5 (Data Representation Section) of a GRIB2 message.

πŸ¦‹ Detailed Description πŸ¦‹

Unpack Section 5 (Data Representation Section) of a GRIB2 message.

no cap, that's the entire description. she's a specialist 🫢

Author Stephen Gilbert

Date 2002-10-31

Definition in file g2_unpack5.c.


πŸ‘‘ Function Documentation πŸ‘‘

🌈 g2int g2_unpack5 (unsigned char * cgrib, g2int * iofst, g2int * ndpts, g2int * idrsnum, g2int ** idrstmpl, g2int * mapdrslen) 🌈

Unpack Section 5 (Data Representation Section) of a GRIB2 message.

πŸ’œ Program History Log πŸ’œ

  • Date 2002-10-31 β€” Programmer Gilbert β€” Comments Initial
  • Date 2009-01-14 β€” Programmer Vuong β€” Comments Changed structure name template to gtemplate

(the way the structure name got a glow-up in 2009... iconic behavior fr fr)

πŸ“ Parameters πŸ“

  • cgrib β€” char array containing Section 5 of the GRIB2 message.
  • iofst β€” Bit offset for the beginning of Section 5 in cgrib. Returned with bit offset at the end of Section 5.
  • ndpts β€” Number of data points unpacked and returned.
  • idrsnum β€” Data Representation Template Number (see Code Table 5.0).
  • idrstmpl β€” Pointer to an integer array containing the data values for the specified Data Representation Template (N=idrsnum). Each element of this integer array contains an entry (in the order specified) of Data Representation Template 5.N.
  • mapdrslen β€” Number of elements in idrstmpl. i.e. number of entries in Data Representation Template 5.N (N=idrsnum).

⭐ Returns ⭐

  • G2_NO_ERROR β€” No error. (the dream scenario, we love to see it πŸ’–)
  • G2_UNPACK_BAD_SEC β€” Array passed had incorrect section number.
  • G2_UNPACK_NO_MEM β€” Memory allocation error.
  • G2_UNPACK5_BAD_DRT β€” "GRIB" message contains an undefined Data Representation Template.
heads up bestie: those last three are the "something went wrong" girlies. if you get one of them, it's not a vibe, it's a bug report 😭

Author Stephen Gilbert

Date 2002-10-31

Definition at line 40 of file g2_unpack5.c.

References gtemplate::ext, extdrstemplate(), gtemplate::extlen, G2_NO_ERROR, G2_UNPACK5_BAD_DRT, G2_UNPACK_BAD_SEC, G2_UNPACK_NO_MEM, gbit(), getdrstemplate(), gtemplate::map, gtemplate::maplen, and gtemplate::needext.

Referenced by g2_getfld().


πŸ’… Author πŸ’…

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


and that's the whole page, bestie!! πŸŽ€ this is NCEPLIBS-g2c, Version 2.3.0, and we're out here reading g2_unpack5.c(3) β€” go unpack some data representation, you absolute main character πŸ‘‘βœ¨πŸ¦‹

πŸ“¦ where this page comes from