Re: a question.. [message #36133 is a reply to message #36131] |
Sat, 23 August 2003 10:15  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Alex Panton wrote:
> Hey have a probably very stupid, ignorant and totally dense question
> but.. its driving me mad!
>
> Here goes,
> If I have say an image of count values which I want to convert to
> something say albedo. I have no equation just a table of values which
> say that count 100 equals a value etc.. (I know there is somewhere here
> I?m being dense!) So basically (!) how can get the image array to look
> for its dn value in the first column of the table and then replace or
> generate a new array with the new albedo values in.
>
> Anyone got any advice? Help? Wonderful pearls of wisdom?
>
> Thanks in advance
>
> alex
Dear Alex,
I am not sure if I understand right.
first I simulate a data image
IDL> z=bytscl(dist(200))
IDL>help,z
Z BYTE = Array[200, 200]
IDL>window,0,xs=200,ys=200
IDL>tv,z
Would you like now to have set a column of some values to another one.
e.g. all values less 50
IDL>ix=where(z[0,*] lt 50,count_ix)
IDL>if count_ix gt 0 then z[0,ix]=255b
IDL> window,1,xs=200,ys=200
IDL> tv,z
Did you like to do something like this?
Reimar
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|