<div dir="ltr"><div><div><div><div><div><div>I upgraded to Grass 7svn rev 55062. That's the latest version available in OSGeo4W<br></div><br>1) Using i.landsat.toar with the NEW MTL and verbose command output:<br></div>
    Output in the "Command output" window shows the expected values for calibration constants, DN etc for each band<br></div>    <a href="http://r.info">r.info</a> on the output images DO NOT SHOW calibration parameters and states that the image is Reflectance of landsat-5 TM, even thou I asked for radiance (-r flag)<br>
<br></div>2) Using i.landsat.toar with the OLD MTL and verbose command output:<br></div>    Same as using the new MTL, that is, parameters show up in the command window but do not appear in <a href="http://r.info">r.info</a> output<br>
<br></div>Bellow ir <a href="http://r.info">r.info</a> output of image generated using old MTL.<br><div>-----------------------------<br>GRASS 7.0.svn> g.version -g<br>version=7.0.svn<br>date=2013<br>revision=55062<br>
build_date=2013-02-15<br>GRASS 7.0.svn> <a href="http://r.info">r.info</a> rad2005_cor.1<br> +----------------------------------------------------------------------------+<br> | Layer:    rad2005_cor.1                  Date: Fri Feb 15 15:10:42 2013    |<br>
 | Mapset:   PERMANENT                      Login of Creator: daniel          |<br> | Location: corr_Atm_utm23s                                                  |<br> | DataBase: C:\grassdata                                                     |<br>
 | Title:     ( rad2005_cor.1 )                                               |<br> | Timestamp: none                                                            |<br> |----------------------------------------------------------------------------|<br>
 |                                                                            |<br> |   Type of Map:  raster               Number of Categories: 0               |<br> |   Data Type:    DCELL                                                      |<br>
 |   Rows:         7001                                                       |<br> |   Columns:      7951                                                       |<br> |   Total Cells:  55664951                                                   |<br>
 |        Projection: UTM (zone -23)                                          |<br> |            N: 7548415.00000001    S:    7338385   Res:    30               |<br> |            E:     623415    W: 384884.99999999   Res:    30                |<br>
 |   Range of data:    min = 0  max = 194.52                                  |<br> |                                                                            |<br> |   Data Description:                                                        |<br>
 |    generated by i.landsat.toar                                             |<br> |                                                                            |<br> |   Comments:                                                                |<br>
 |     Reflectance of Landsat-5 TM (method corrected)                         |<br> |    ----------------------------------------------------------------        |<br> |     Acquisition date ...................... 2005-05-15                     |<br>
 |     Production date ....................... 2012-12-01                     |<br> |                                                                            |<br> |     Earth-sun distance (d) ................ -0.00000000                    |<br>
 |     Digital number (DN) range ............. 0 to 0                         |<br> |     Calibration constants (Lmin to Lmax) .. +0.000 to +0.000               |<br> |     DN to Radiance (gain and bias) ........ -0.00000 and +0.00000          |<br>
 |     Mean solar irradiance (ESUN) .......... -0.000                         |<br> |     Reflectance = Radiance divided by ..... -0.00000                       |<br> |    -----------------------------------------------------------------       |<br>
 |                                                                            |<br> |    i.landsat.toar -r input_prefix="tm5_2005_orig." output_prefix="rad20\   |<br> |    05_cor." metfile="C:\projetos\agspec\correcao_landsat\LT521807620051\   |<br>
 |    35CUB00\LT52180762005135CUB00_MTLold.txt" sensor="tm5" method="corre\   |<br> |    cted" date="2005-05-15" sun_elevation=37.184 product_date="2012-12-0\   |<br> |    1" percent=0.01 pixel=1000 rayleigh=0.0                                 |<br>
 |                                                                            |<br> +----------------------------------------------------------------------------+<br><br></div><div>Thanks<br>Daniel<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 11:14 AM, Nikos Alexandris <span dir="ltr"><<a href="mailto:nik@nikosalexandris.net" target="_blank">nik@nikosalexandris.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Daniel,<br>
<br>
if you have the old MTL files beforehand, it might be better right now.  Along<br>
with another few changes, I've sent a diff to Yann C who will submit them<br>
probably tonight.<br>
<br>
Best, N<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</div></div></blockquote></div><br></div>