X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12 Nov 2015 02:52 AM by  anon
LoadCT only works in IDLDE
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:32
New Member


--
12 Nov 2015 02:52 AM
    <p>I used a draw widget to display 2D image data, and used LOADCT before the TV command to change the color.&nbsp;</p> <p>The program works perfect inside the IDLDE, but does not work outside the IDLDE. Regardless of what colortable I set use LOADCT, only grey image is displayed.</p> <p>I am using IDL 8.4 on Linux Debian.</p> <p>Can anyone give me a hint, what could be the problem here?</p> <p>Best regards</p>

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    12 Nov 2015 09:23 AM
    <p>Hello,</p> <p><br /> </p> <p>Try setting DECOMPOSED=0 for DEVICE. Here is an example for how to do this:</p> <p>; Read data from IDL distribution<br /> filename = FILEPATH(SUBDIRECTORY=['examples','data'], $<br /> &nbsp; &nbsp; 'worldelv.dat')<br /> OPENR, lun, filename, /GET_LUN<br /> thermImage = BYTARR(360,360, /NOZERO)<br /> READU, lun, thermImage<br /> FREE_LUN, lun<br /> <br /> LOADCT, 3<br /> device, decomposed =0<br /> TVSCL, thermImage</p> <p><br /> </p> <p>Hope this helps!</p> <p>-Zach (VIS)</p>

    Deleted User



    New Member


    Posts:32
    New Member


    --
    12 Nov 2015 09:43 PM
    <p>Works perfect! Thanks Zach.</p>
    You are not authorized to post a reply.