View Full Version : Gnu Data Language (GDL) : loadct procedure not found
acl123
January 25th, 2009, 09:34 AM
I've just downloaded GDL to have a play with it as an alternative to IDL.
It all works OK and I've managed to do some basic stuff, but it is telling me that the "loadct" procedure is not found.
According to various sites out there loadct should be implemented. Does anyone know why it might not be working?
slayoo
May 20th, 2009, 03:48 AM
Hello,
... it is telling me that the "loadct" procedure is not found...
Please check if the IDL_DIR (or GDL_DIR) env. variable is set and points to a directory with GDL library files (those in the src/pro directory of the source package). Some of the GDL library routines are implemented in GDL language (or partly in GDL, as in the case of LOADCT). Mac ports, for example, automatically place these library files under ${prefix}/share/gnudatalanguage/pro.
Regards,
Sylwester
sfa2560
September 22nd, 2009, 07:30 AM
Hi I have a similar problem but with reading image:
GDL> im = read_jpg('~/Desktop/image.jpg')
Function not found: READ_JPG
% Function not found: READ_JPG
% Execution halted at: $MAIN$
is this what you got with loadct?
if so please post the directory to the IDL_DIR (or GDL_DIR) and what exactly to do for the fix from the second post. :)
shanex
April 13th, 2010, 09:33 PM
I am having this same loadct problem. I tried to find the GDL_DIR variable and cannot find it. Does anyone have any more specific instructions available?
jonnymccullagh
April 3rd, 2011, 12:22 PM
I just happened upon this old post and I found the solution myself so I thought I would post it to help others. Change jonny below to your own username:
To ensure the libraries above are available to GDL when you run it, you can make use of the GDL_STARTUP environment variable. Set it as follows (bash):
export GDL_STARTUP=/home/jonny/.gdl_startup
Or add that line to your .bash_profile file so it is run automatically on log in
Now that we have set the GDL_STARTUP variable to point to a file we need to create that file: Use vi, gedit or any other text editor to create the file: /home/jonny/.gdl_startup
and add the following contents:
!PATH=!PATH + ':/usr/share/doc/gnudatalanguage/examples/pro/'
!PATH=!PATH + ':/usr/share/doc/gnudatalanguage/examples/pro/dicom/'
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.