<div dir="ltr">Hi,<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 2:53 AM, Michele Toma <span dir="ltr"><<a href="mailto:michele.toma@airborne.aero" target="_blank">michele.toma@airborne.aero</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi everyone (again),<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am having trouble exporting a composite RGB image into a GeoTIFF format that I can open in Global Mapper, Photoshop, or other programs. This is using Landsat 8 imagery. I am able to open the composite image in QGIS, but not in Global
 Mapper or Photoshop. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Below is a list of steps that I took to get the image. I am unsure of what settings to use when using r.out.gdal to export my image so that it works in other programs. I am using GRASS 7.0.4.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>1.<span style="font:7pt "Times New Roman"">      
</span></span><u></u>Import Landsat 8 imagery<u></u><u></u></p>
<p><u></u><span>2.<span style="font:7pt "Times New Roman"">      
</span></span><u></u>Convert the DN to reflectance/radiance<u></u><u></u></p>
<p style="margin-left:1in">
<u></u><span>a.<span style="font:7pt "Times New Roman"">      
</span></span><u></u>i.landsat.toar input=LC81100362016082LGN00_B output=LC81100362016082LGN00_refl metfile=LC81100362016082LGN00_MTL.txt<u></u><u></u></p>
<p><u></u><span>3.<span style="font:7pt "Times New Roman"">      
</span></span><u></u>Perform pansharpening with i.fusion.brovey addon<u></u><u></u></p>
<p style="margin-left:1in">
<u></u><span>a.<span style="font:7pt "Times New Roman"">      
</span></span><u></u>i.fusion.brovey -l ms1=LC81100362016082LGN00_refl2@Osaka ms2=LC81100362016082LGN00_refl3@Osaka ms3=LC81100362016082LGN00_refl4@Osaka pan=LC81100362016082LGN00_refl8@Osaka output_prefix=brovey</p></div></div></blockquote><div><br></div><div>BTW: this method is superior (the addon can be installed with g.extension):<br><a href="https://github.com/NikosAlexandris/i.fusion.hpf">https://github.com/NikosAlexandris/i.fusion.hpf</a><br></div><div> </div><div>[...]<br> <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 link="blue" vlink="purple" lang="EN-US"><div>
<p class="MsoNormal">Another method that I have tried using an example on the r.out.gdal documentation page:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">i.group group=brovey_group input=brovey.red,brovey.green,brovey.blue<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">g.region rast=brovey.blue -p<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">r.out.gdal in=brovey_group output=brovey_group.tif type=Float64 \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">  createopt="PROFILE=GeoTIFF,INTERLEAVE=PIXEL,TFW=YES"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:black">The result is an image with distorted colors when opened in QGIS. Water has turned a reddish brown color.<u></u><u></u></span></p>
<p class="MsoNormal"> </p><p class="MsoNormal">[...]<br></p></div></div></blockquote><div><br></div><div>Please try to create the group in order B G R, not R G B:<br><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">i.group group=brovey_group input=brovey.blue,brovey.green,brovey.red</span></p><br>and then export it as above.<br></div></div><br></div><div class="gmail_extra">Best,<br></div><div class="gmail_extra">Markus<br><br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Markus Neteler<br><a href="http://www.mundialis.de" target="_blank">http://www.mundialis.de</a> - free data with free software<br><a href="http://grass.osgeo.org" target="_blank">http://grass.osgeo.org</a><br><a href="http://courses.neteler.org/blog" target="_blank">http://courses.neteler.org/blog</a></div>
</div></div>