X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Aug 2012 10:59 PM by  anon
Problem with MCTK extracting MODIS LST (MOD11A1)
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Aug 2012 10:59 PM
    Hi I ran the code according to MCTK manual for MOD11A1 file, but it displays the error as "attempt to subscript NUM_DIMS_ARRAY with VALID_SDS is out of range ". The Code is: pro test_batch_modis_conversion_grid compile_opt idl2 modis_grid_file = 'C:\MOD11A1.A2008336.h25v06.005.2008337232328.hdf' output_location = 'C:\output\' output_rootname = 'lst_day' grid_name = 'MODIS_Grid_Daily_1km_LST' sd_names = ['LST_day_1km'] out_method = 1 output_projection = envi_proj_create(/geographic) out_ps_x=0.01d out_ps_y=0.01d interpolation_method = 6 convert_modis_data, in_file=modis_grid_file, $ out_path = output_location, out_root= output_rootname, $ /higher_product, /grid, gd_name=grid_name, sd_names=sd_names, $ out_method= out_method, out_proj=output_projection, $ out_ps_x=out_ps_x, out_ps_y=out_ps_y, num_x_pts=50, num_y_pts=50, $ interp_method=interpolation_method, $ r_fid_array=r_fid_array, r_fname_array=r_fname_array END

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Aug 2012 10:11 AM
    Have you tried running your file through the interactive dialogs to see what you results are? As you do this keep track of the options you chose. It could be that you are not choosing the correct ones with the code

    Deleted User



    New Member


    Posts:3
    New Member


    --
    24 Aug 2012 12:59 AM
    SD_NAMES may be case sensitive, try sd_names = ['LST_Day_1km'] instead of sd_names = ['LST_day_1km']
    You are not authorized to post a reply.