X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 Jul 2019 03:17 PM by  Ben Castellani
Data types LIST and HASH are missing
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Brandon Burkholder



New Member


Posts:
New Member


--
18 Jul 2019 12:49 PM
    I am struggling to understand why I am unable to create certain compound data types in my IDL programs. I came upon this problem in my code while trying to use the data types LIST and HASH and after further inspection I found that I also cannot produce DICTIONARY and ORDEREDHASH.

    For example, following the syntax given on the page -

    https://www.harrisgeospatial.com/docs/IDL_Data_Types.html

    I get the following result when trying to construct a hash data type

    IDL> h = HASH('Id',1234)
    % Variable is undefined: HASH.
    % Execution halted at: $MAIN$

    and similarly

    IDL> l = LIST(1,2)
    % Variable is undefined: LIST.
    % Execution halted at: $MAIN$

    I have IDL version 8.5.1 and I am running on Mac OS X El Capitan Version 10.11.6

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    22 Jul 2019 03:17 PM
    It sounds like you have an IDL search path issue, probably pointing to a version of IDL before 8.0 (when list/hash were introduced). More than likely the culprit is the IDL_DIR system variable.

    Confirm nothing in the following output points to an old IDL installation. If they do, fix them to point to your 8.5.1 installation.

    print, getenv(/env), /implied
    help,/pref
    You are not authorized to post a reply.