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

Home » Public Forums » archive » Re: Questions about IDL 8.0
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: Questions about IDL 8.0 [message #73741 is a reply to message #73740] Tue, 23 November 2010 16:12 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 23, 9:52 pm, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> ;*********************************************************** *********
>> file = Filepath('worldelv.dat', SUBDIRECTORY = ['examples', 'data'])
>> world = Read_Binary(file, DATA_DIMS = [360,360])  
>> CTLoad, 4, /BREWER, RGB_TABLE=ct
>> img = Image(world, RGB_TABLE=ct)
>
>> CTLoad, 18, /BREWER RGB_TABLE=nct
>> img.rgb_table=nct ; to new color table
>
>> Help, ct, nct
>> END
>> ;*********************************************************** *********
>
> Oh, wait, there is a typo there! I need a comma
> after the second BREWER.
>
>    CTLoad, 18, /BREWER, RGB_TABLE=nct
>
> But even when fixed, it doesn't work. :-(

If your question is why it works with the first table, and not the
second, I do not have an answer. I would not expect it to work with
either, because 3 is the second dimension.

I verified that both work when I use the transpose of what ctload
returns.

I would guess that the init method looks for the dimension with length
3, while the setproperty method just assumes it is the first.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Make IDL record console output to a file automatically?
Next Topic: Re: high quality 'old' direct graphics

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

Current Time: Sat Oct 11 06:40:42 PDT 2025

Total time taken to generate the page: 1.59934 seconds