g2ccompare.c(3)

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

πŸ’– g2ccompare.c πŸ’–

okay bestie, so this is a page from the Library Functions Manual (that's the manual it lives in, mwah) and it's literally all about peeking at two open GRIB2 files and comparing their metadata. no cap, that's the whole vibe. πŸ¦‹


✨ NAME ✨

g2ccompare.c β€” compare the metadata of two open GRIB2 files. that's it, that's the girl. πŸ’…


🌸 SYNOPSIS 🌸

#include 'grib2_int.h'
#include <math.h>
#include <stdarg.h>

πŸŽ€ Functions πŸŽ€

  • int g2c_compare (int g2cid1, int g2cid2) β€” compare the metadata of two open GRIB2 files. the main character fr.

🧚 Variables 🧚

  • G2C_FILE_INFO_T g2c_file [G2C_MAX_FILES+1] β€” global file information. she's global, she's important, she's everywhere.

🌈 Detailed Description 🌈

so basically, this compares the metadata of two open GRIB2 files. two files walk in, their metadata gets compared, slay. ✨

Author Ed Hartnett

Date Dec 28, 2022

Definition in file g2ccompare.c.


πŸ‘‘ Function Documentation πŸ‘‘

🌟 int g2c_compare (int g2cid1, int g2cid2) 🌟

compare the metadata of two open GRIB2 files. yes, the same thing again, because documentation loves a callback. πŸ’–

Parameters

  • g2cid1 β€” Indentifier for one file. (yes it says "Indentifier", we're keeping it exactly, don't come for me 😭)
  • g2cid2 β€” Indentifier for the other file.

Returns

  • G2C_NOERROR β€” No error. we love a clean run. 🫢
  • G2C_EINVAL β€” Invalid parameters. something's not giving.
  • G2C_EFILE β€” File I/O error. πŸ’€

Author Ed Hartnett

Date Dec 28, 2022

Definition at line 28 of file g2ccompare.c.

References g2c_message_info::center, g2c_section5_info::data_def, g2c_message_info::day, g2c_message_info::discipline, G2C_EBADID, G2C_ENOSECTION, G2C_ERROR, g2c_file, G2C_MAX_FILES, G2C_NOERROR, g2c_section3_info::grid_def, g2c_message_info::hour, g2c_section3_info::interp_list, g2c_message_info::local_version, LOG, g2c_message_info::master_version, g2c_message_info::minute, g2c_message_info::month, g2c_message_info::next, g2c_section_info::next, g2c_section4_info::num_coord, g2c_section3_info::num_data_points, g2c_section5_info::num_data_points, g2c_message_info::num_fields, g2c_message_info::num_local, g2c_section3_info::num_opt, g2c_section_info::prev, g2c_section4_info::prod_def, g2c_message_info::sec, g2c_section_info::sec_info, g2c_section_info::sec_num, g2c_message_info::second, g2c_message_info::sig_ref_time, g2c_section3_info::source_grid_def, g2c_message_info::status, g2c_message_info::subcenter, g2c_section_info::template, g2c_section_info::template_len, g2c_message_info::type, and g2c_message_info::year. the way that is a LOT of references, she's connected, iykyk. πŸ”₯

Referenced by main(). just the one. iconic of her honestly.


πŸ’œ Variable Documentation πŸ’œ

πŸ’« G2C_FILE_INFO_T g2c_file [extern] πŸ’«

Global file information. she's the blueprint, the moment, the everything. πŸ‘‘

Definition at line 30 of file g2cfile.c.

Referenced by find_available_g2cid(), free_metadata(), g2c_add_file(), g2c_close(), g2c_compare(), g2c_degrib2(), g2c_find_msg2(), g2c_get_msg(), g2c_get_prod(), g2c_inq(), g2c_inq_dim(), g2c_inq_msg(), g2c_inq_msg_time(), g2c_inq_prod(), g2c_log_file(), g2c_open_index(), g2c_seekmsg(), g2c_write_index(), and read_metadata(). literally everyone needs her. main character energy, periodt. πŸ’…


🌸 Author 🌸

Generated automatically by Doxygen for NCEPLIBS-g2c from the source code. not a human writing this one, just doxygen doing its lil thing. πŸ€–βœ¨


okay that's the whole page bestie, thanks for reading, mwah! πŸ’– and for the cute sign-off: this lil doc came from NCEPLIBS-g2c, Version 2.3.0, and it's filed under g2ccompare.c(3). go forth and compare those metadata, you got this. πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from