GribApiDotNet / GribApi.NET

A powerful .NET library for reading and writing GRIB 1 and 2 files
Apache License 2.0
54 stars 28 forks source link

Degribbing Incorrectly #47

Closed IdahoSixString closed 7 years ago

IdahoSixString commented 7 years ago

Here http://www.atmo.arizona.edu/products/models/forecasts/id/

These folks have large amounts of grib2 files. If you run their files through your code you will notice that you are missing a lot of data. Specifically I noticed the V components of wind. Therefore, you cannot properly get the appropriate vector for the wind. In addition, due to this reading incorrectly you will begin to notice that you will start getting string values where there should only be decimal values.

Here is a complete implementation of reading and writing grib files in C.

ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/wgrib.c

Maybe this will assist you in making this a great grib library.

0x1mason commented 7 years ago

It's degribbing correctly. The likely problem is the GRIB files contain multi-messages, which is generally discouraged. You can handle multi-messages as described here: https://github.com/0x1mason/GribApi.NET/issues/29

If that resolves your problem, please lmk and update Stack Overflow accordingly.

Lmk if you need further assistance.

IdahoSixString commented 7 years ago

You are absolutely correct. This has solved the issue.

Thank you for your prompt support.

IdahoSixString commented 7 years ago

Would this be something that could be determined by the library automatically as to not need to manually change the setting?

0x1mason commented 7 years ago

Glad that worked.

That's a great question. I'll do some research. Can you open an enhancement request?

IdahoSixString commented 7 years ago

Doesn't look like I can add labels but I opened up two new tickets.