I have a number of 32-bit-float single-band GeoTIFFs where about 30% of the values are NaN. I have confirmed the presence of these NaN values by reading the GeoTIFFs using GDAL and libTIFF. However, when I open these GeoTIFFs in QGIS as raster height layers, all the NaN values are somehow replaced with what appears to be valid ground heights.
Why is QGIS doing this and is there a way to force QGIS to load the raw values from a GeoTIFF?