X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Jan 2015 09:33 PM by  anon
MODIS Conversion Toolkit - IDL Execution Error
 5 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
25 Jan 2015 09:33 PM
    Hello all, I'm beginner in IDL and exploring the MODIS conversion toolkit to process datasets. After compiling the code, i am getting this below error on ENVI_PROJ_CREATE. I appreciate your kind response in resolving the issue. % Compiled module: TEST_BATCH_MODIS_CONVERSION_LEVEL_1B. % Attempt to call undefined function: 'ENVI_PROJ_CREATE'. Thanks Giriraj Here is the complete code: ;Level 1B example pro test_batch_modis_conversion_level_1b compile_opt idl2 modis_l1b_file = 'D:\test\MYD\MYD02QKM.A2009002.1340.005.2009330121428.hdf' ;The specified output location MUST end in the appropriate path ;separator for your OS output_location = 'D:\test\Output\' output_rootname = 'level_1b' ;Calibration method schema is: ;0 = Radiance / Emissivity, 1 = Reflectance / Emissivity, 2 = Radiance / Brightness Temp calib_method = 1 ;Output method schema is: ;0 = Standard, 1 = Projected, 2 = Standard and Projected out_method = 1 output_projection = ENVI_PROJ_CREATE(/geographic) ;do not put the bridge creation/destruction code inside a loop bridges = mctk_create_bridges() ;Choosing linear interpolation interpolation_method = 1 convert_modis_data, in_file=modis_l1b_file, out_path=output_location, $ out_root=output_rootname, out_method=out_method, $ interp_method=interpolation_method, $ out_proj=output_projection, calib_method=calib_method, $ sd_pos=[1,3], /no_msg, background=0.0, r_fid_array=r_fid_array, $ r_fname_array=r_fname_array, bridges=bridges, msg=msg mctk_destroy_bridges, bridges end

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    26 Jan 2015 08:56 AM
    ENVI_PROJ_CREATE is an ENVI routine and in order to use this add-on, you must have an ENVI license as well as an IDL license. Additionally, you need to restore the ENVI sav files and initiate batch mode. ENVI, /RESTORE_BASE_SAVE_FILES ENVI_BATCH_INIT

    Deleted User



    New Member


    Posts:
    New Member


    --
    27 Jan 2015 07:36 AM
    This post is a duplicate post in the existing thread. Thanks for your quick help. Yes we have license version to run both ENVI and IDL. I opened the IDL software and included the two commands you recommended. The compiled and run the programme. I get the below messages IDL> test_batch_modis_conversion_level_1b % Compiled module: TEST_BATCH_MODIS_CONVERSION_LEVEL_1B. % Restored file: ENVI. % Restored file: ENVI_M01. % Restored file: ENVI_M02. % Restored file: ENVI_M03. % Restored file: ENVI_M04. % Restored file: ENVI_M05. % Restored file: ENVI_M06. % Restored file: ENVI_M07. % Restored file: ENVI_M08. % Restored file: ENVI_D01. % Restored file: ENVI_D02. % Restored file: ENVI_D03. % Restored file: ENVI_CW. % Restored file: ENVI_IDL. % Restored file: ENVI_IOW. % Restored file: ENVI_RV. % Restored file: MCTK. % Loaded DLM: MAP_PE. % Loaded DLM: IDL_IDLBRIDGE. % Loaded DLM: XML. % Loaded DLM: HDF. IDL> I could see the pop up window "MODIS HDF Conversion", and a file extension .dat in the output folder I have been waiting for quite sometime to get the results but nothing happens...Any quick advice to resolve the issue. Thank you for your cooperation. Regards Giriraj

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    27 Jan 2015 10:48 AM
    Try running the batch with ENVI+IDL running. Perhaps you might see additional information if the code crashes or stops.

    Deleted User



    New Member


    Posts:
    New Member


    --
    27 Jan 2015 08:33 PM
    Thanks. I used both Envi+IDL. Here is the command results. In previous case, i get popup on MODIS HDF Conversion, but currently nothing happens. I tried both in Win32 and 64-bit but no response. IDL Version 8.4, Microsoft Windows (Win32 x86_64 m64). (c) 2014, Exelis Visual Information Solutions, Inc. Trial version expires on 30-jun-2015. Licensed for use by: CGIAR % Restored file: ENVI. % Loaded DLM: PNG. % Loaded DLM: HPGRAPHICS. % Loaded DLM: XML. ENVI> .compile -v 'D:\test\MYD\test_batch_modis_conversion_level_1b.pro' % Compiled module: TEST_BATCH_MODIS_CONVERSION_LEVEL_1B. ENVI> test_batch_modis_conversion_level_1b % Compiled module: TEST_BATCH_MODIS_CONVERSION_LEVEL_1B. % Loaded DLM: MAP_PE. % Loaded DLM: IDL_IDLBRIDGE. ENVI>

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    28 Jan 2015 11:07 AM
    Sorry, there isn't enough information to tell what might be going wrong. You might try contacting the author of the tool to ask.
    You are not authorized to post a reply.