Problems with IDL on Fedora Core 7 [message #55289] |
Thu, 16 August 2007 12:22  |
Luiz Angioletti
Messages: 5 Registered: August 2007
|
Junior Member |
|
|
Hi there folks,
It has been a while since I've subscripted to this group, and since
then I've had no major contact with IDL besides installation process
and reading the IDL Online Help.
Today I decided to try a few things on IDL and see how it would
work. Seems to me that I've a problem.
I've started with the first example of the IDL online help,
'interactivestretch.pro'. It didn't even compile. The CPU usage went
thru the roof, and then the kernel killed the process.
The code is the following:
------------------------------------------------------------ ----------------------------------
FUNCTION stretchImage, img, value
;Stretch image by input amount
image = img > value
RETURN, image
end
;---Begin $MAIN$ program. ------
;Display the image, solicit threshold value and display new results.
;set up display.
DEVICE, DECOMPOSED = 0, RETAIN = 2
LOADCT, 0
;Access image data and display.
img = READ_PNG(FILEPATH('mineral.png',$
SUBDIRECTORY = ['examples', 'data']))
dims = SIZE(img, /DIMENSIONS)
WINDOW, 0, XSIZE = dims[0], YSIZE = dims[1]
TVSCL, img
; Ask for a threshold value and stretch image.
READ, threshold, PROMPT='Enter numerical value: '
newImg = stretchImage(threshold, img)
;Display the results.
TVSCL, newImg
END
-----------------------------------------------------
I've no idea what happened.
I run Fedora Core 7 on a Pentium4 2.4GHz, 2GB RAM. I had to install
a few things and make a few adjustments to my Fedora so I could run
IDL.
Thanks, and I'm sorry about any ugly English error.
Luiz Angioletti.
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Problems with IDL on Fedora Core 7 [message #55849 is a reply to message #55741] |
Wed, 19 September 2007 07:25  |
Luiz Angioletti
Messages: 5 Registered: August 2007
|
Junior Member |
|
|
On Sep 9, 2:39 pm, jkj <ke...@vexona.com> wrote:
> On Sep 9, 2:42 am, Anna Kowalska <ja...@user.jumlers.com> wrote:
>
>> cab anyone help me with this please
>
> The thing I repetitively do onFedora(5/6/, haven't tried direct
> graphics on7yet):
>
> rpm -e --nodeps libX11.i386
> rpm -i libX11-1.0.3-6.fc6.i386.rpm
> export MALLOC_CHECK_=0
> export LIBGL_ALWAYS_INDIRECT=1
>
> ...of course, all of that came from researching a Tech Tip like the
> one you referenced above, so if the above doesn't work for you, I'm
> not sure what else to suggest (I downloaded the libX11 RPM from
> " http://download.fedora.redhat.com/pub/fedora/linux/core/upda tes/6/
> i386/libX11-1.0.3-6.fc6.i386.rpm")
>
> Good luck,
> -Kevin
Hi there,
I solved my problem, apparently, upgrading to IDL 6.4. Seems fine.
Best regards.
Luiz.
|
|
|