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

Home » Public Forums » archive » Re: Data type detection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Data type detection [message #32056 is a reply to message #31978] Thu, 05 September 2002 13:18 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Rick Towler wrote:

> type = size(variable, /type)
>
> see help on the SIZE function for the type codes.
>
> -Rick

In addition of this we have developed a routine is_type


if is_type(var,'STRING') then ....


to determine if a string is a valid number we are using
the routine is_number

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/download/is_type.tar.gz
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/download/is_number.tar.gz

or as idl5.5 binary

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/download/is_type.sav
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/download/is_number.sav


For further routines and licensing please have a look at
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html


regards

Reimar



>
>
> "Asti Bhatt" <astib@cc.usu.edu> wrote in message
> news:9e922196.0209041532.42fa4483@posting.google.com...
>> Hi,
>>
>> Greetings. I need to detect data type of particular variable in my
>> program. i.e. something like - if datatype of x equals integer then
>> ...
>> I couldn't find anything for it. Does anybody know the way to do such
>> thing ?
>>
>> Thank you,
>> Asti

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Previous Topic: Problem with IDL 5.5 on Red Hat 7.2
Next Topic: Re: Problem with IDL 5.5 on Red Hat 7.2

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

Current Time: Fri Oct 10 07:50:00 PDT 2025

Total time taken to generate the page: 4.39880 seconds