[GRASS-user] Problems with HIS conversion

Hi there,
yesterday I tried to convert three (R,G,B) quickbird channels to HIS
using i.rgb.his.
When I tried to display the resulting channels using d.his all I got was
gray output (I tried every combination and it alway looked like crap...).
The initial data looked good when using d.rgb for display. I'm using RC4
on Ubuntu 9.04.
Any ideas? Thanks!
Georg

ok, I just found out that the data is stored using more than 1 byte:

r.info -r szene1_mul.1
min=0
max=2047

how can I convert it to a range of [0,255]?

r.mapcalc "szene1_mul_1byte.1 = 255*(szene1_mul.1/2047)"

would that be appropriate? I'll give it a shot :wink:

Georg Kaspar schrieb:

ok, I just found out that the data is stored using more than 1 byte:

r.info -r szene1_mul.1
min=0
max=2047

how can I convert it to a range of [0,255]?

r.mapcalc "szene1_mul_1byte.1 = 255*(szene1_mul.1/2047)"

would that be appropriate? I'll give it a shot :wink:

ok, it worked using r.rescale.eq, but unfortunately the results of the
his conversion still look grey...
Is this a known bug? I wouldn't install RC5 unless I have to, since
there are no binaries at the moment...