In this PR I introduce the capability of opening a GRIB2 data file using a pre-existing index file. The file metadata is read from the index file, instead of scanned from the actual GRIB2 file, and this is quicker.
At this time no checking is done to confirm that the correct index file was supplied with the data file. If an incorrect index file is used, unintended hilarity or disaster may result. Since the g2c API is read-only so far, no harm can be done.
OK, this is ready for review and merge, but it will be a lot simpler to review after all the other open PRs get merged, since they are all part of this PR too. ;-)
Part of #333
In this PR I introduce the capability of opening a GRIB2 data file using a pre-existing index file. The file metadata is read from the index file, instead of scanned from the actual GRIB2 file, and this is quicker.
At this time no checking is done to confirm that the correct index file was supplied with the data file. If an incorrect index file is used, unintended hilarity or disaster may result. Since the g2c API is read-only so far, no harm can be done.