None of the example procedures mentioned at the end of the MCTK user guide will georeference the MYD03 files. For example, when I try using the Level 1B or Level 1A examples, it simply states that the supplied MODIS product name is not recognized. If I attempt to georeference the MYD03 files by using the "level 2 swath example" and extract the corresponding sd_names that I need (SensorZenith and SensorAzimuth) it states that the process was "unable to attach to specified swath. Check name against HDF file contents."
Here is the procedure for the Level 1b example
ENVI> compile_opt idl2
ENVI> modis_l1b_file ='S:\Cole_Krehbiel\Undergrad_Research_Project\IDL\hdf\MYD03.A2010223.1920.005.2010229080808.hdf'
ENVI> output_location ='S:\Cole_Krehbiel\Undergrad_Research_Project\IDL\hdf\'
ENVI> output_rootname = 'level_1b'
ENVI> calib_method = 1
ENVI> out_method = 1
ENVI> output_projection = envi_proj_create(/geographic)
ENVI> convert_modis_data, in_file=modis_l1b_file, out_path=output_location, $
ENVI> out_root=output_rootname, /l1b, out_method=out_method, $
ENVI> out_proj=output_projection, calib_method=calib_method, /bowtie, $
> sd_pos=[1,3], /no_msg, background=0.0
And here is the procedure from the swath example
ENVI> modis_swath_file ='S:\Cole_Krehbiel\Undergrad_Research_Project\IDL\hdf\MYD03.A2010223.1920.005.2010229080808.hdf'
ENVI> output_location ='S:\Cole_Krehbiel\Undergrad_Research_Project\IDL\hdf\'
ENVI> output_rootname ='SensorZenith'
ENVI> swath_name='MYD03'
ENVI> sd_names= ['SensorZenith','SensorAzimuth']
ENVI> out_method=1
ENVI> output_projection = envi_proj_create(/geographic)
ENVI> interpolation_method = 6
ENVI> convert_modis_data, in_file=modis_swath_file, $
> out_path=output_location, out_root=output_rootname, $
> /higher_product, /swath, swt_name=swath_name, $
> sd_names=sd_names, out_method=out_method,out_proj=output_projection, num_x_pts=50, num_y_pts=50, interp_method=interpolation_method, /no_msg
ENVI>
|