Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

SetValues() creating incorrect double data #102

Open
jarzynka opened this issue Jun 25, 2018 · 1 comment
Open

SetValues() creating incorrect double data #102

jarzynka opened this issue Jun 25, 2018 · 1 comment

Comments

@jarzynka
Copy link

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);

@IdahoSixString
Copy link

@jarzynka Any update on this?
@0x1mason Any progress on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants