getdim.c(3)

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

πŸ’– getdim.c(3) πŸ’–

okay bestie, welcome to the Library Functions Manual ✨ this one's about a lil C function called getdim.c and honestly? she's a whole mood. she's giving "i know ur grid dimensions and i'm not even stressed about it" πŸ¦‹


🌸 NAME 🌸

getdim.c β€” Return the dimensions and scanning mode of a grid definition.

like. that's it. that's her job. and she ate πŸ’…


✨ SYNOPSIS ✨

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

πŸŽ€ Functions

  • g2int getdim (unsigned char *csec3, g2int *width, g2int *height, g2int *iscan) β€” Return the dimensions and scanning mode of a grid definition.

🌈 Detailed Description 🌈

Return the dimensions and scanning mode of a grid definition.

no cap, that's the whole pitch 🫢

πŸ‘‘ Author

Stephen Gilbert

πŸ“… Date

2002-12-11

πŸ“Œ Definition in file getdim.c.


πŸ’œ Function Documentation πŸ’œ

g2int getdim (unsigned char * csec3, g2int * width, g2int * height, g2int * iscan)

Return the dimensions and scanning mode of a grid definition.

πŸ“ Parameters

  • csec3 β€” Character array that contains the packed GRIB2 GDS.
  • width β€” x (or i) dimension of the grid. 0 if grid is not recognized.
  • height β€” y (or j) dimension of the grid. 0 if grid is not recognized.
  • iscan β€” Scanning mode (see Table 3.4). 0 of grid not recognized.
bestie real talk: if the grid is not recognized, width, height and iscan all come back as 0. that's ur vibe check right there 😭

πŸ”₯ Returns

Always returns 0.

yes queen, ALWAYS. every single time. the return value is literally just 0 and we respect her for the consistency πŸ’€βœ¨

πŸ‘‘ Author

Stephen Gilbert

πŸ“… Date

2002-12-11

πŸ“Œ Definition at line 27 of file getdim.c.

πŸ”— References

g2_unpack3()

πŸ”— Referenced by

g2_addfield()


🌟 Author 🌟

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


and that's the whole page bestie, no crumbs left, we devoured it πŸ’…βœ¨

NCEPLIBS-g2c Β· Version 2.3.0 Β· getdim.c(3) β€” mwah, stan a manual page that knows exactly what it is πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from