Envi调用
MODISReprojectionToolMRT对MODIS产品进行批处理拼接
Revised final draft November 26, 2020
1 熟悉MRT
?
MODIS产品的类型不同,一景HDF格式的影像包含的波段也各不相同。MRT处理时需要选择处理波段,0表示不作处理,1表示处理,首先要确定影像的波段数。 ? ? 1、拼接
程序用来拼接影像。调用方式为:
mrtmosaic -i \0 0 1 1 1 0 0 0 0 \ 命令行帮助如下
Usage: mrtmosaic -i input_filenames_file -t -h -o output_filename -s spectral_subset \ -g filename for the log file ? ?
需要指定三个参数:
-I?指定输入文件,可以采取两种方式 1、
2、把影像的完整路径保存到txt文件中,作为input参数。如-I 。 ? ? ?
-s 指定需要处理的波段,同样可以采用两种方式
1、直接给出,如 –s “0 0 0 0 0 0 0 0 0 0 0 0”,注意英文引号;
2、指定一个txt路径,让程序读取; ? ?
-o 指定输出路径,一般直接给出
1、直接给出,如 –o g:\\。注意直接存为HDF格式,便于后续处理。 ?
2、重投影、裁切
用来重投影、裁切是MRT程序的核心。调用方式为: 命令行帮助如下:
Usage: resample -p parameter_file [options] ?
Options that override parameter file specifications: -i input_file_name -o output_file_name
-r resampling_type [NN BI CC NONE]
-t projection_type [AEA ER GEO HAM IGH ISIN LA LCC MERCAT MOL PS SIN TM UTM]
-j projection_parameter_list \ -s spectral_subset \
If using the -s switch, the SDSs should be represented as an array of 0s and 1s. A '1' specifies to process that SDS;
'0' specifies to skip that SDS. Unspecified SDSs will not be processed. If the -s switch is not specified, then all SDSs will be processed. -a spatial_subset_type [INPUT_LAT_LONG INPUT_LINE_SAMPLE OUTPUT_PROJ_COORDS]
-l spatial_subset \ -or-\ -or-\
NOTE: line/sample must be specified for the highest resolution of all SDSs specified to be processed in the product. -u UTM_zone -x pixel_size
-g filename for the log file ? ?
Envi调用MODISReprojectionToolMRT对MODIS产品进行批处理拼接



