Re: Keyword TNAME not allowed in call to: DATATYPE [message #70984] |
Mon, 17 May 2010 10:36  |
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
|
|
|