X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Oct 2022 06:02 PM by  Ben Castellani
Variable undefined problem: STRSPLIT
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Brivael Laloux



New Member


Posts:
New Member


--
27 Nov 2020 07:24 AM
    Hello everyone, I am a beginner in IDL language and I need it to use the ACIS Extract package.
    After instaling the IDL and the reauested libraries I tried to do the tutorial example of the package. I had several problems including incomplete IDL_PATH to access all libraries. Anyhow, I couldn't solve one problem: the function STRSPLIT. At some point, a procedure of the ACIS Extract package used this function and it raised an error
    "%Variable is undefined: STRSPLIT.
    % Execution halted at: $MAIN$ "
    I tried to understand why this didn't worked and type this in the IDL command:
    IDL> str = "Hello World"
    IDL> result = STRSPLIT(str)
    % Variable is undefined: STRSPLIT.
    % Execution halted at: $MAIN$

    I think the issue comes from the fact that while "playing" with the IDL_PATH I only indicate the path to the add-on libraries (like LIBAstro or Coyote) and IDL doesn't remember the path to the "built-in" functions but I don't know where this function could be installed on my computer.
    Anyway, do you have a clue about what went wrong ? and how to solve this ?
    Thanks in advance,
    Brivael

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    27 Oct 2022 06:02 PM
    Your IDL_PATH must include the default libraries in IDL (everything inside the lib folder). Otherwise, you will get errors such as this when calling IDL routines that are written in PRO code.

    For more information about how to properly configure your IDL search path, see this Help Article: https://www.l3harrisgeospatial.com/Support/Self-Help-Tools/Help-Articles/Help-Articles-Detail/ArtMID/10220/ArticleID/16156/Quick-tips-for-customizing-your-IDL-program-search-path
    You are not authorized to post a reply.