X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 Oct 2011 03:08 PM by  anon
Attempt to call undefined procedure - ENVI_PROJ_CREATE
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:14
New Member


--
22 Oct 2011 03:08 PM
    I've run into a problem when calling ENVI_PROJ_CREATE from and IDL procedure. Here is the code: ENVI, /RESTORE_BASE_SAVE_FILES ENVI_BATCH_INIT ;, Log_File = logname ENVI_BATCH_STATUS_WINDOW, /OFF datum = 'North America 1983' OUT_proj = ENVI_PROJ_CREATE(DATUM=datum, /GEOGRAPHIC) Here is the output. IDL> glsea2_var_smi_composite, 'MODIS', 'Michigan', 2002, 'chlor_a' % Compiled module: GLSEA2_VAR_SMI_COMPOSITE. % Attempt to call undefined procedure/function: 'MAP_PE_VALID_DATUM_NAME'. % Execution halted at: ENVI_PROJ_PE_CREATE_COORD_SYS_OBJECT % ENVI_PROJ_PE_COORD_SYS_OBJ_CACHE % ENVI_PROJ_CREATE % GLSEA2_VAR_SMI_COMPOSITE 16 /home/IDLWorkspace81/Compositing/glsea2_var_smi_composite.pro % $MAIN$ Has anyone else encountered this? What is the fix? Thanks, Barry

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    23 Oct 2011 10:29 AM
    Try adding: compile_opt idl2 at the beginning of your code after the pro statement

    Deleted User



    New Member


    Posts:14
    New Member


    --
    23 Oct 2011 10:53 AM
    Thanks - Currently I use compile_opt strictarr. I'll try your suggestion. I'm wondering now, however, if there is a compatibility issue with IDL8.1 and ENVI4.8. Barry

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    24 Oct 2011 07:13 AM
    ENVI 4.8 runs on IDL 8.0, not 8.1. Try running the program in the IDL that comes with ENVI 4.8 and see if it works.

    Deleted User



    New Member


    Posts:14
    New Member


    --
    24 Oct 2011 07:35 AM
    Right, Mari. I forgot that. Of course, you're correct. I will try that - a little bit of a nuisance, but that's okay. Barry
    You are not authorized to post a reply.