You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
Using GRIB2 file from NWS NDFD, wish to load data, do some grid algebra then save to a new grib2 file. using Values() from message successfully extracts grid point data to double[]. SetValues() creates incorrect data values. From GridCoordinateValues(), Ex. 9999 becomes 10009.7. Was thinking byte order or float <-> double translation might be off?
// get the first record as reference var message = file.FirstOrDefault(); var gridOutput = message.GridCoordinateValues.ToList(); message.Values(out double[] tempVals); message.SetValues(tempVals);
The text was updated successfully, but these errors were encountered:
Using GRIB2 file from NWS NDFD, wish to load data, do some grid algebra then save to a new grib2 file. using Values() from message successfully extracts grid point data to double[]. SetValues() creates incorrect data values. From GridCoordinateValues(), Ex. 9999 becomes 10009.7. Was thinking byte order or float <-> double translation might be off?
Data source: http://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/DF.gr2/DC.ndfd/AR.conus/VP.001-003/ds.maxt.bin
// get the first record as reference var message = file.FirstOrDefault(); var gridOutput = message.GridCoordinateValues.ToList(); message.Values(out double[] tempVals); message.SetValues(tempVals);
The text was updated successfully, but these errors were encountered: