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
|