>  Docs Center  >  Libraries  >  Daithi  >  VAR_TYPE
Libraries

VAR_TYPE

VAR_TYPE

Name


    VAR_TYPE

Purpose


    This function returns the IDL code of the variable type.

Category


    Miscellaneous, Optimal Detection Package v3.1.1

Calling Sequence


    Result = VAR_TYPE( INVAR )

Inputs


    INVAR: The variable to have its type returned.

Keyword Parameters


    HELP: If set the function prints the name of the variable type to
        screen. Default is no printing.
    TEXT: If set the function returns a text string instead of a number.

Outputs


    Result: The IDL code of the variable type. See the HELP option section
        of the function for interpretation of the code, or use the HELP
        keyword.

Procedure


    This function reads the variable type index from the SIZE function.

Example


    Define a floating point number.
      x = 1.2
    Find out its variable type.
      result = var_type( x, /help )

Modification History


    Written by: Edward Wiebe, 2000-01-21.
    Modified: Daithi Stone, 2000-06-29 (changed behaviour of HELP keyword).
    Modified: ECW, 2001-05-08 (added text keyword)
    Modified: DAS, 2011-11-06 (modified format; inclusion in Optimal
        Detection Package category)



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us