g2_unpack6.c(3)

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

πŸ¦‹ g2_unpack6.c β€” from the Library Functions Manual πŸ’–

okay bestie, pull up a chair because we're about to read the most iconic little function in NCEPLIBS-g2c, and yes it lives in section 3 of the manual, so you already know it's giving library-function realness ✨

✨ NAME ✨

g2_unpack6.c β€” Unpack Section 6 (Bit-Map Section) of a GRIB2 message. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

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

πŸŽ€ Functions πŸŽ€

  • g2int g2_unpack6 (unsigned char *cgrib, g2int *iofst, g2int ngpts, g2int *ibmap, g2int **bmap) β€” Unpack Section 6 (Bit-Map Section) of a GRIB2 message. literally her whole personality 🫢

πŸ’œ Detailed Description πŸ’œ

Unpack Section 6 (Bit-Map Section) of a GRIB2 message. no cap, that's the vibe, that's the mission 🌈

Author Stephen Gilbert πŸ‘‘

Date 2002-10-31 ⭐

Definition in file g2_unpack6.c.


πŸ”₯ Function Documentation πŸ”₯

g2int g2_unpack6 (unsigned char * cgrib, g2int * iofst, g2int ngpts, g2int * ibmap, g2int ** bmap)

Unpack Section 6 (Bit-Map Section) of a GRIB2 message. she's the main character of this whole page fr fr πŸ’–

🌸 Parameters 🌸

  • cgrib β€” char array containing Section 6 of the GRIB2 message.
  • iofst β€” Bit offset of the beginning of Section 6 in cgrib.
  • ngpts β€” Number of grid points specified in the bit-map.
  • ibmap β€” Bitmap indicator (see Code Table 6.0) πŸ‘€
    • 0 β€” bitmap applies and is included in Section 6.
    • 1-253 β€” Predefined bitmap applies.
    • 254 β€” Previously defined bitmap applies to this field.
    • 255 β€” Bit map does not apply to this product.
  • bmap β€” Pointer to an integer array containing decoded bitmap. (if ibmap=0)

🫢 Returns 🫢

  • G2_NO_ERROR β€” No error. we love a clean run ✨
  • G2_UNPACK_BAD_SEC β€” Array passed had incorrect section number. 😭
  • G2_UNPACK6_BAD_BITMAP β€” Unrecognized pre-defined bit-map. πŸ’€
  • G2_UNPACK_NO_MEM β€” Memory allocation error. πŸ™ˆ

Author Stephen Gilbert πŸ‘‘

Date 2002-10-31 ⭐

Definition at line 32 of file g2_unpack6.c.

References G2_NO_ERROR, G2_UNPACK_BAD_SEC, G2_UNPACK_NO_MEM, gbit(), and gbits(). the whole squad showed up πŸ’–

Referenced by g2_getfld(). mutuals! πŸ¦‹


πŸ’… Author πŸ’…

Generated automatically by Doxygen for NCEPLIBS-g2c from the source code. not a human, just a robot doing her little documentation dance πŸ€–βœ¨


and that's a wrap bestie πŸŽ€ this page came straight from the NCEPLIBS-g2c crew, Version 2.3.0, dated g2_unpack6.c(3) β€” go unpack those bit-maps, you absolute icon, periodt πŸ’–πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from