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
|