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

Home » Public Forums » archive » the strange case of readcol.pro in idl 5.6
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
the strange case of readcol.pro in idl 5.6 [message #46066] Thu, 03 November 2005 04:53 Go to next message
j.j.harry is currently offline  j.j.harry
Messages: 1
Registered: November 2005
Junior Member
Hi folks!

I have a quite weird question, that I'm preatty sure someone of you
already experienced.
I have a program that is working like a charm on my machine and I'm
using idl 6.0 with a bunch of libraries downloaded from the net. Here
is how my .bashrc looks like

export IDL_PATH=${IDL_PATH}:+\${HOME}/download/astron
export IDL_PATH=${IDL_PATH}:+/usr/local/rsi/idl_6.0

Now I have to use right the same program on a machine where idl 5.6 is
installed. Ok, I think I probably have to make some small change in my
.bashrc and then start to have fun.
So I edit the .bashrc in the following way

export IDL_PATH=${IDL_PATH}:+\${HOME}/download/astron
export IDL_PATH=${IDL_PATH}:+/usr/local/rsi/idl

(actually I have tried different options before to post such a topic)
and then I go to run my program....but:


var = strsplit(strcompress(temp),delimiter,/extract)
^
% Syntax error.
At: /home/harry/download/astron/goddard/pro/readcol.pro, Line 230
% Compiled module: READCOL.
% Attempt to call undefined procedure/function: 'READCOL'.


So, the problem looks more like some misunderstanding between idl 5.6
and the readcol routine :/
At least I have tried to put readcol (and the routines it calls) in the
same directory as my program (so to avoid some unseen error in linking
the library) but it continue not to work.

I have seen that in readcol.pro there is a line to discriminate between
version newer and older than 5.6 ..... does anyone have some
suggestion??!?

Thanks a lot!
Harry
Re: the strange case of readcol.pro in idl 5.6 [message #46205 is a reply to message #46066] Wed, 09 November 2005 01:57 Go to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
You are aware, that the problem obviously lies within STRSPLIT,
not READCOL ?

If there is a syntax error within a routine, that routine is not
successfully compiled and hence the routine is not known afterwards.
Therefore the:
% Attempt to call undefined procedure/function: 'READCOL'

It looks like that STRSPLIT is not found within the IDL path and
therefore
taken as an array, hence the:
% Syntax error.

To check it, try to do
.COMPILE STRSPLIT

explicitely.

HTH,
marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Displaying three images simultaneously (using Object Graphics)
Next Topic: Re: Mac Woes Continue

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

Current Time: Wed Oct 08 11:43:56 PDT 2025

Total time taken to generate the page: 0.00741 seconds