• Notice
  • about
  • category
  • Substitute GDL for IDL


    Category : 글 꾸러미/일기쓰기, S2  /  Posted at : 2009/12/08 16:01
    IDL, Interactive Data Language is the extremely useful computer language in graphic data processing. But license is much expensive and the floating license was a troublesome work. For example, whenever I use IDL, I should connect on the network, and delayed a few second.
    So, I want to use 6.4 version in my macbook, snowleopard 10.6 because my office have a license of this version. but IDL must be updated as 6.4.1 for using in OSX and license could not be effected.
    Today, I installed GDL, GNU Data Language. This is a opensource version of IDL, so comportable, the same with IDL. Install is easy.

    For more information, visit " http://gnudatalanguage.sourceforge.net/ "


    After installed, occured a error when you call 'plot' processer

    GDL> plot, [1,2]
    _X11TransSocketINETConnect() can't get address for /tmp/launch-l74O3E/:6000: nodename nor servname provided, or not known

    then, you should set DISPLAY variable as ":0".
    at X11, you can write

    DISPLAY=":0"

    This idea is from "http://www.dfanning.com/tips/maccrash.html". ("setenv" is no more use in bash shell.)

    Posted By Yang

    Spawn IDL procesure


    Category : 글 꾸러미/연구하기, S2  /  Posted at : 2009/11/23 17:33
    SPAWN
    Syntax | Arguments | Keywords | Examples | Version History | See Also
    The SPAWN procedure spawns a child process to execute a command or series of commands. The result of calling SPAWN depends on the platform on which it is being used:
    Under UNIX, the shell used (if any) is obtained from the SHELL environment variable. The NOSHELL keyword can be used to execute a command directly as a child process without starting a shell process.
     
    Under Windows, a Command Shell is opened. The NOSHELL keyword can be used to execute the specified command directly without starting an intermediate command interpreter shell.


    --------------------------------------------------------------------------------------
    spawn can be used for calling external excutable file.
    Posted By Yang

    How to import external function of dll file to IDL process?


    Category : 글 꾸러미/연구하기, S2  /  Posted at : 2009/11/23 17:33

    CALL_EXTERNAL
    Syntax | Return Value | Arguments | Keywords | | Examples | Version History | See Also
    The CALL_EXTERNAL function calls a function in an external sharable object and returns a scalar value. Parameters can be passed by reference (the default) or by value. See Using CALL_EXTERNAL for examples.
    CALL_EXTERNAL is supported under all operating systems supported by IDL, although there are system specific details of which you must be aware. This function requires no interface routines and is much simpler and easier to use than the LINKIMAGE procedure. However, CALL_EXTERNAL performs no checking of the type and number of parameters. Programming errors are likely to cause IDL to crash or to corrupt your data.


    --------------------------------------------------------------------------------------

    This Call_external function may useful. Let`s test for future.

    Posted By Yang