When calculating the min/max value for a raster the noDATAVAlue is also considered resulting in incorrect scaling. 
When calculating the min/max value for a raster the noDATAVAlue is also considered resulting in incorrect scaling.