X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12 Jul 2018 04:09 PM by  David Starbuck
Compiling a list of IDL-ENVI codes in another folder
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Alireza Taravat



New Member


Posts:1
New Member


--
09 Jul 2018 01:52 AM
    Dear all,

    I have a list of IDL .pro codes and I would like to compile all of them. Is there any routing in idl that can handel it in order to avid one by one compiling?

    Thanks in advance,
    ART

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    12 Jul 2018 03:15 PM
    Hello ART,

    Here are a few tips that may be helpful.....

    1) The COMPILE command (IDL Command Line or Console only): http://www.harrisgeospati...m/docs/_COMPILE.html
    You can feed the COMPILE command single .pro file or an array of .pro files

    2) IDL Projects (Workbench Only): http://www.harrisgeospati...m/docs/Projects.html

    Place all the code you want to compile at once into an IDL Project. Then using the Project > Build All process, you can compile all the .pro files within your Project directory at once.

    3) The RESOLVE_ALL procedure: http://www.harrisgeospati...ocs/resolve_all.html

    This may be helpful, depending on your application.


    David Starbuck



    Basic Member


    Posts:143
    Basic Member


    --
    12 Jul 2018 04:09 PM
    My understanding of your question is that you are trying to compile a bunch of ".pro" files located in a specific folder. If you are using the IDL workbench and you have you have all of the ".pro" files within the same directory, an easy way to do this might be to do "build project". To do this, you can use the procedure below:

    1) Create a new project that includes the folder with the .pro files (if not already created)
    2) Right click on the project and then go to "Properties"
    3) Click on IDL Build Properties and then uncheck the "Create a save file" option (unless you want a save file to be generated).
    4) Click "Apply" and "OK".
    5) Right click on the project again and select "Build Project"

    All of the .pro files in this directory will then be compiled.

    David
    -HGS
    You are not authorized to post a reply.