<div dir="ltr">Dear all,<div>I have an issue opening a netcdf with gdal. I should declare the data type of my raster in gdal.Open().</div><div><br><div>The Netcdf data type is declared in the metadata as "Float", but GDAL reads this information as Float64 and not as Float32. This reading error misinterprets my decimal values causing rounding errors.<br><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>float 32 to float64 (wrong):</div></div><div><div>[0.9160000518, 0.920000052] > 0.92 --> [False, True] WRONG</div></div><div><div><br></div></div><div><div>flaot32 to float32 (correct):</div></div><div><div>[0.916, 0.92] > 0.92 --> [False, False] CORRECT</div></div></blockquote><div><div><br>Is there a way to specify the input data type? </div><div>I'm not able to find a solution to this.</div><div><br>Regards<br></div></div><div><br></div><div>Federico</div></div>