<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Dear Mr Markus,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Yes, the inputs were converted to TOA radiance by using formular: Rad = DN*Gain + Offset, range of 4 bands:<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">  band 1: min = 42.336  max = 149.94 (Comments: b1 * 0.588 <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">  band 2: min = 25.212  max = 146.115 (Comments: b2 * 0.573)<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">  band 3: min = 15.562  max = 128.01 (Comments: b3 * 0.502)<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">  band 4: min = 11.14  max = 124.768 (Comments: b4 * 0.557)<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">When I try with input which presents TOA reflectance and use "i.atcorr -r", it also returns all NULL values for band 2,3.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Attachments are orginal band 2 (b2) and TOA radiance of band 2 (b2_rad).<br><br>Thank you so much for your support.​<br><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd;line-height:1"><a href="https://drive.google.com/file/d/0B7hMJ463uflaLTRxWFM5blpkNG8/view?usp=drive_web" target="_blank" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:medium none;width:100%"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">b2_rad</span></a></div>​​<br><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd;line-height:1"><a href="https://drive.google.com/file/d/0B7hMJ463uflaWVhNQXZMTWJYSXc/view?usp=drive_web" target="_blank" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:medium none;width:100%"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">b2</span></a></div>​<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Yours sincerely,</div><div>Hang</div><div><br> </div><div>---  --- --- ---</div><div dir="ltr">Do Thi Hang (MSc candidate)</div><div dir="ltr">GIS Laboratory</div><div dir="ltr">Graduate school for Creative Cities</div><div dir="ltr">Osaka City University<br><div>Tel. +81-90-8385-6238</div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-08-04 0:49 GMT+09:00 Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Hang,<br>
<span class=""><br>
On Fri, Jul 29, 2016 at 7:38 AM, Do Thi Hang <<a href="mailto:dohanghumg@gmail.com">dohanghumg@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I am trying to use i.atcorr in GRASS GIS 7 with AVNIR-2 data in Japan, it<br>
> works well for band 1,4 but returns all NULL values for band 2,3. Maybe the<br>
> problem is because of Sensor band parameter (the last one in 6S parameters,<br>
> the values are 81, 82. 83, 84 respectively band 1, 2, 3, 4): For all 4<br>
> bands, I change the parameter from 81 to 84, it returns all NULL values when<br>
> the parameter is 82 or 83; real/integer values when the parameter is 81 or<br>
> 84.<br>
<br>
</span>A question: are your AVNIR-2 input data representing radiance at<br>
top-of-atmosphere (TOA)?<br>
<span class=""><br>
> Below is list of 6S parameters for band 2:<br>
><br>
> 11                                         # geometrical conditions = avnir<br>
> 2 15 3.00 135.657 34.282       # month day hh.ddd long lat<br>
> 1                                           # atmospheric mode = tropical<br>
> 1                                           # aerosols model = continental<br>
> 11                                         # visibility (km)<br>
> -0.300                                   # mean target elevation above sea<br>
> level = 300 m<br>
> -1000                                    # sensor height = on board<br>
> 82                                         # 2th band of avnir<br>
><br>
> Could anybody help me to solve this problem? Thank you very much.<br>
<br>
</span>While I haven't worked with AVNIR-2 yet, I don't see any obvious<br>
errors in the file. Not sure about "tropical" for Osaka but it should<br>
deliver some result anyway.<br>
However, in the first place let's check the input data.<br>
<br>
Can you post the range of each channel here? (<a href="http://r.info" rel="noreferrer" target="_blank">r.info</a> output contains it).<br>
<br>
Best,<br>
Markus<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Markus Neteler<br>
<a href="http://www.mundialis.de" rel="noreferrer" target="_blank">http://www.mundialis.de</a> - free data with free software<br>
<a href="http://grass.osgeo.org" rel="noreferrer" target="_blank">http://grass.osgeo.org</a><br>
<a href="http://courses.neteler.org/blog" rel="noreferrer" target="_blank">http://courses.neteler.org/blog</a><br>
</font></span></blockquote></div><br></div>