<p dir="ltr">I gave up on that pansharpening attempt. I can test some of my imagery tomorrow and let you know if I still have issues with it.</p>
<div class="gmail_quote">On Jul 27, 2013 3:13 PM, "Nikos Alexandris" <<a href="mailto:nik@nikosalexandris.net">nik@nikosalexandris.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[Back to this old thread!]<br>
<br>
Eric Goddard wrote:<br>
> Alright, I'm at home on my linux box running grass7, still with the same<br>
> issue. I converted the inputs for my test area to float:<br>
><br>
> r.mapcalc "ik_c1r2_f.4 = float(ik_c1r2_mss.4@PERMANENT)"<br>
> r.mapcalc "ik_c1r2_f.3 = float(ik_c1r2_mss.3@PERMANENT)"<br>
> r.mapcalc "ik_c1r2_f.2 = float(ik_c1r2_mss.2@PERMANENT)"<br>
> r.mapcalc "ik_c1r2_f.p = float(ik_c1r2_pan@PERMANENT)"<br>
><br>
> and set the color table to grey for each one. (I also remembered to change<br>
> region to reflect the higher resolution of the pan image). I then ran<br>
> i.pansharpen:<br>
> i.pansharpen sharpen=ihs ms3=ik_c1r2_f.4@PERMANENT<br>
> ms2=ik_c1r2_f.3@PERMANENTms1=ik_c1r2_f.2@PERMANENTpan=ik_c1r2_f.p@PERMANENTo<br>
> utput_prefix=ik_ihs_f<br>
><br>
> running <a href="http://r.info" target="_blank">r.info</a> on the output bands from i.pansharpen shows that their range<br>
> is still 0-38.<br>
><br>
> The output image is attached.<br>
><br>
> Also, there is one small bug in the output. Line 330: grass.message(_("To<br>
> visualize output, run: g.region -p rast=%s.red" % out)) -- the %s.red<br>
> should be %s_red.<br>
><br>
> I've tried using the PCA algorithm and the output looks the same, though<br>
> the range is different. Later on I'll try with different imagery and see<br>
> what happens...<br>
<br>
Is this still an issue?  I get akward outputs using i.pansharpen on IKONOS<br>
imagery.<br>
<br>
Nikos<br>
</blockquote></div>