Help reading Grib1 Data (win32)
I'm trying to read Grib1 wind data downloaded from Grib.us. What I've looked at so far comes through as a simple long/lat grid with 16bit values and a float reference offset.
Only problem is I'm getting the wrong values. They bear some resemblance to the original data with wind patterns recognizable but it looks like I've got the powers or the references wrong I just don't understand how. Final results have the wrong magnitudes / directions.
I didn't intend on writing a decoder but didn't find code / libs I could easily include in a win32 program. So here I am.
Basic decoding of the binary data section is below - any hints or tips or pointers towards someone who can help appreciated!
|All times are GMT -4. The time now is 06:49 PM.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
(c) Marine.com LLC 2000-2012