Closed arisliang closed 1 year ago
Hello,
Unfortunately, for now there are no documentation. You can use the unit tests as reference to read GRIB files data. The base usage :
using var stream = File.OpenRead("sample.grib");
var reader = new Grib2Reader(stream);
var datasets = reader.ReadAllDataSets();
var temperatureDs = datasets.Single(d => d.Parameter.Equals(Parameter.Temperature));
var data = reader.ReadDataSetValues(temperatureDs);
To find information about the content (i.e. the GRIB sections, the templates, the field values...) please refer to the official specifications :
Couldn't find any usage examples. Would be great if there's some.