<div dir="ltr"><div>Hi Carlos, <br></div><div><br></div><div>Did you try with rescale=0,1? Or 0,10000 and then divide the result by 10000?<br></div><div><br></div><div>Vero<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 31 ago 2021 a las 16:43, Carlos Henrique Grohmann de Carvalho (<<a href="mailto:carlos.grohmann@gmail.com">carlos.grohmann@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">
<div class="gmail_default" style="font-family:verdana,sans-serif">Hello all</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I'm preparing a tutorial on remote sensing with GRASS (already have 7 videos - in portuguese - here: <a href="https://www.youtube.com/c/SPAMLabUSP" target="_blank">https://www.youtube.com/c/SPAMLabUSP</a>)</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">What
I'm planning now is to run i.landsat.toar and i.atcorr, and then
compare the results with the surface reflectance products from Landsat
collection 2.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I
got it all running but the results are a bit different and it seems
that the "range" and "rescale" options are the ones to tweak.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">checking the metadata:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div>L2 before scale factor: {'min': '3783', 'max': '65535'}<br>L2 after scale factor: {'min': '-0.0959675', 'max': '1.6022125'}<br><br>L1 radiance at sensor: {'min': '-6.2', 'max': '191.6'}<br><br>L1 reflectance dos1: {'min': '0', 'max': '0.398754597845553'}<br><br>L1 reflectance 6S: {'min': '8.560894e-11', 'max': '255'}</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I can use the min/max from radiance-at-sensor as the "range" in i.atcorr, but what would be best for the "rescale" option? If I don't set it, I end up with 0-255 <br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default" style="font-family:verdana,sans-serif">values. How to get the floating-point result?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">thank you for any input</div>
</div><div><br></div><div><br></div><div><div style="font-family:verdana,sans-serif" class="gmail_default">Carlos</div><br></div><br>-- <br><div dir="ltr"><div dir="ltr">Prof. Carlos Henrique Grohmann<br>Institute of Energy and Environment - Univ. of São Paulo, Brazil<div>- Digital Terrain Analysis | GIS | Remote Sensing - </div><div><br></div><div><a href="http://carlosgrohmann.com/" target="_blank">http://carlosgrohmann.com</a></div><div><a href="http://orcid.org/0000-0001-5073-5572" style="font-size:13px;color:rgb(17,85,204)" target="_blank">http://orcid.org/0000-0001-5073-5572</a><br><div>________________<br>Can’t stop the signal.</div></div></div></div></div>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div>