[gdal-dev] ReadRaster C# Incorrect values
mvscheers
menno at huss.nl
Tue Oct 18 06:00:01 PDT 2016
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, (IntPtr) dataPtr, dataBand.XSize,dataBand.YSize,
DataType.GDT_Float64, 0, 0);
}
}
All values returned are either the NO_DATA value (9999) or 0.
ANything im doing wrong here ?
L-000-MSG3__-MPEF________-MPEG_____-000000___-201610121330-__.grib
<http://osgeo-org.1560.x6.nabble.com/file/n5291259/L-000-MSG3__-MPEF________-MPEG_____-000000___-201610121330-__.grib>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-ReadRaster-C-Incorrect-values-tp5291259.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list