comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: a question..
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: a question.. [message #36131] Sun, 24 August 2003 14:20 Go to previous message
Alex Panton is currently offline  Alex Panton
Messages: 2
Registered: August 2003
Junior Member
thank you for replying! i figured it out (yes was i being dense) and
then more annoyingly didn't need to do it anyway d'oh!

cheers

alex


Reimar Bauer wrote:
> 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
[Message index]
 
Read Message
Read Message
Previous Topic: a question..
Next Topic: TeX-like format request $\hat \sigma$

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:33:03 PDT 2025

Total time taken to generate the page: 1.75938 seconds