<div dir="ltr"><div>Hello, </div><div><br></div><div>I filed a bug report on this some weeks ago:</div><div><a href="http://hub.qgis.org/issues/11573">http://hub.qgis.org/issues/11573</a><br></div><div><br></div><div>But it hasn't gotten the required attention.    It's a rather egregious bug, which currently is restricting us to QGIS v2.2, which is becoming more of a problem the more outdated it gets.</div><div><br></div><div>In short, when using a floating point gain with integer images the datatype is not promoted, so you end up with an image that is rounded to the nearest integer.  It's fairly common practice to store indices, like NDVI, as an Int16 with a gain of 0.0001 as it is half the space. But in QGIS, these images end up being rounded to mostly 0.</div><div><br></div><div>The feature of auto-applying the gain is nice in practice, but without promoting the data type of the output it is counter-productive.   It would be good to either revert this feature or properly promote the datatype.</div><div><br></div><div>I'd be happy to do more digging and try fixing this and issue a PR if someone could get me started by pointing me in the general direction of the code responsible for this.</div><div><br></div><div>Thanks,</div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Matthew Hanson<div>Applied GeoSolutions</div><div>(603) 659-3363 x91</div><div><a href="http://appliedgeosolutions.com" target="_blank">http://appliedgeosolutions.com</a></div><div><a href="mailto:mhanson@appliedgeosolutions.com" target="_blank">mhanson@appliedgeosolutions.com</a></div><div><br></div></div></div></div>
</div>