Results 1 to 5 of 5

Thread: Gnu Data Language (GDL) : loadct procedure not found

  1. #1
    Join Date
    Aug 2007
    Beans
    156

    Gnu Data Language (GDL) : loadct procedure not found

    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?

  2. #2
    Join Date
    May 2009
    Beans
    1

    Re: Gnu Data Language (GDL) : loadct procedure not found

    Hello,

    Quote Originally Posted by acl123 View Post
    ... 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

  3. #3
    Join Date
    Nov 2008
    Beans
    4

    Re: Gnu Data Language (GDL) : loadct procedure not found

    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.

  4. #4
    Join Date
    Mar 2009
    Beans
    3

    Re: Gnu Data Language (GDL) : loadct procedure not found

    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?

  5. #5
    Join Date
    Apr 2006
    Location
    Ireland
    Beans
    166
    Distro
    Ubuntu

    Re: Gnu Data Language (GDL) : loadct procedure not found

    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/'

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •