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

Home » Public Forums » archive » Re: Keyword TNAME not allowed in call to: DATATYPE
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
Re: Keyword TNAME not allowed in call to: DATATYPE [message #70984] Mon, 17 May 2010 10:36
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I see the OP solved his problem, but I had already written the
following response:

On May 17, 1:05 pm, Joe Daal <joe.d...@gmail.com> wrote:
> Ok, this is driving me nuts. I am getting this error more often these
> days, and always avoid it by writing my own loops or so. When I use an
> IDL lib function, I often get this error:
>
> 'Keyword TNAME not allowed in call to: DATATYPE'

I don't know the answer but I can provide some possibly relevant
background. (It looks like I will be haunted by my past today...)

datatype.pro is a very old function in the IDL Astro library, which
was removed in 2006. It was written before the intrinsic SIZE()
function had all its current keywords, and later included the /TNAME
keyword to match SIZE(/TNAME)

There is also a function datatype.pro in the JHUAPL library (which
came before the Astro version) for which the /TNAME keyword was never
added.

So if there was a program trying to call the old Astro library
version, but finding the JHUAPL version, you would get that error.

The mystery is -- what program is calling datatype.pro? The word
"datatype" does not appear in int_tabulated.pro

I might first try finding if you have datatype.pro in your !path

IDL> print,file_which('datatype.pro')

--Wayne
Re: Keyword TNAME not allowed in call to: DATATYPE [message #70985 is a reply to message #70984] Mon, 17 May 2010 10:15 Go to previous message
Joe Daal is currently offline  Joe Daal
Messages: 9
Registered: May 2010
Junior Member
Ok, found the problem:

I have the solarsoft IDL library installed in RSI/lib/
Apparently, many of the original lib routines have the same name as in
solarsoft, so IDL calls them first-sometimes.
I deleted solarsoft, all is ok now.

J
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Keyword TNAME not allowed in call to: DATATYPE
Next Topic: Breaking files

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

Current Time: Wed Oct 08 11:35:35 PDT 2025

Total time taken to generate the page: 0.00532 seconds