X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



7236 Rate this article:
5.0

How to create an ENVI *.sav file for ENVI Runtime Use

This article outlines the steps that are required to create an ENVI *.sav file. In order to do so you must have ENVI+IDL installed.

Complete the following steps to create an ENVI save file from within an IDL session. If you are currently running an ENVI session, be sure to exit ENVI before saving and compiling your user function procedure in IDL. Otherwise, your ENVI save file (*.sav) will include all of the compiled ENVI routines.

1. Reset your session
To ensure that no unwanted session information is saved along with the program enter the following at the IDL command prompt(not case sensitive):

    IDL>.FULL_RESET_SESSION or
    IDL>.F

2. Open the ENVI procedure (*.pro)
Suppose your code is called 'my_envi_function.pro'. Open and then compile it by entering the following at the IDL command prompt:

    IDL> .COMPILE my_envi_function.pro

3. Call RESOLVE_ALL
From the IDL command line call 'resolve_all' to compile all dependent routines in the code. Since the program is using any ENVI library routines, use the SKIP_ROUTINES keyword to not resolve those routines. This is necessary because IDL doesn't 'understand' ENVI routines.

    IDL> Resolve_All, /continue_on_error, skip_routines='envi'

This is an example of what may be seen at the output window:
% Attempt to call undefined procedure/function: 'ENVI_GET_PROJECTION'.
% Execution halted at: RESOLVE_ALL_BODY
% Attempt to call undefined procedure/function: 'ENVI_PROJ_CREATE'.
% Execution halted at: RESOLVE_ALL_BODY


4. Create the ENVI save file (*.sav)
Finally, to create the ENVI *.sav file use the SAVE procedure at the IDL command line, and set the ROUTINES keyword:

    IDL> SAVE, file='my_envi_function.sav', /routines

 

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »