Skip to content

Commit

Permalink
added some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Nov 1, 2024
1 parent dd4d315 commit 84f506e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/g2cindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,18 @@ read_hdr_rec2(FILE *f, int *skipp, int *total_lenp, int *num_recp,
/**
* Open a GRIB1 index file and read the contents.
*
* This function opens the GRIB2 index file and reads its metadata,
* and opens the accompanying GRIB2 file.
*
* GRIB2 messages in the file are assigned a message ID, starting with
* 0 for the first message in the file.
*
* Each product within a message is assigned a product ID, starting
* with 0 for the first product in the message.
*
* Files opened with this function should be closed with a call
* g2c_close() to release resources.
*
* @param index_file The name that will be given to the index file. An
* existing file will be overwritten.
*
Expand Down

0 comments on commit 84f506e

Please sign in to comment.