Re: [gdal-dev] ReadRaster C# Incorrect values

2016-10-18 Thread mvscheers
Thanks for the suggestion, I posted a wrong example (Tried everything, converting bytes to doubles etc) I have tried reading float64 -> c# double. same problem. Doing this in c++ yields the same result. Viewing this grib file in panoply gives correct results. Still at a loss here -- View th

[gdal-dev] ReadRaster C# Incorrect values

2016-10-18 Thread mvscheers
Hi, Trying to get data from attached grib file. (BAND 1) float[] bfr = new float[dataBand.XSize * dataBand.YSize]; unsafe { fixed (float* dataPtr = bfr) { dataBand.ReadRaster(0, 0, dataBand.XSize, dataBand.YSize