sunxiaofang的个人博客分享 http://blog.sciencenet.cn/u/sunxiaofang

博文

MRT(MODIS Reprojection Tool)批处理MOD11A1的代码(转载)

已有 9718 次阅读 2009-12-9 10:24 |个人分类:未分类|系统分类:科研笔记

转自http://blog.sina.com.cn/s/blog_4edba2dd01000bjj.html~type=v5_one&label=rela_nextarticle

MRT(MODIS Reprojection Tool)批处理MOD11A1的代码

以处理MOD11A1数据为例,处理其他MODIS产品类似:
代码:
day=2001001
while [ $day -le 2001365 ]
do
for trl in MOD11A1.A$day.*.hdf
do
if [ -f $trl ]
then
HDFFILES=$(ls MOD11A1.A$day.*.hdf)
echo $HDFFILES > MOSAICINPUT.TXT
MRTMOSAIC -i MOSAICINPUT.TXT -s "1 0 0 0 0 0 0 0 0 0 0" -o MOSAIC_TMP_$day.hdf
RESAMPLE -p LST.PRM -i MOSAIC_TMP_$day.hdf -o MOD11A1_$day.tif
rm MOSAIC_TMP_$day.hdf
rm MOD11A1.A$day.*.hdf
let "day=day+1"
break
else
let "day=day+1"
break
fi
done
done
 
LST.PRM参数文件:

#The "INPUT_FILENAMES" field would be commented. If you want to load multiple input files please uncomment the "INPUT_FILENAMES" field and comment the"INPUT_FILENAME" field.
#Also the "ORIG_SPECTRAL_SUBSET" field needs to be uncommented and changed to "SPECTRAL_SUBSET". The initial "SPECTRAL_SUBSET" field should be deleted.


#INPUT_FILENAMES = ( E:LSTMOD11A1.A2001131.h26v04.004.2003115130411.hdf E:LSTMOD11A1.A2001131.h26v05.004.2003115134041.hdf E:LSTMOD11A1.A2001131.h27v04.004.2003115150352.hdf E:LSTMOD11A1.A2001131.h27v05.004.2003115125635.hdf )

INPUT_FILENAME = E:LSTTmpMosaic.hdf

SPECTRAL_SUBSET = ( 1 )
#ORIG_SPECTRAL_SUBSET = ( 1 0 0 0 0 0 0 0 0 0 0 0 )

SPATIAL_SUBSET_TYPE = INPUT_LAT_LONG

SPATIAL_SUBSET_UL_CORNER = ( 50.0 124.457906149 )
SPATIAL_SUBSET_LR_CORNER = ( 30.0 115.470053838 )

OUTPUT_FILENAME = E:LSTLST.TIF

RESAMPLING_TYPE = NEAREST_NEIGHBOR

OUTPUT_PROJECTION_TYPE = AEA

OUTPUT_PROJECTION_PARAMETERS = (
 0.0 0.0 25.0
 47.0 105.0 0.0
 0.0 0.0 0.0
 0.0 0.0 0.0
 0.0 0.0 0.0 )

DATUM = WGS84

OUTPUT_PIXEL_SIZE = 1000

  


http://blog.sciencenet.cn/blog-331307-277287.html

上一篇:MRT(Modis Reprojection Tool)批处理MODIS影象(以海河流域为例)(转载)
下一篇:Cygwin使用指南

0

发表评论 评论 (1 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备14006957 )

GMT+8, 2019-11-13 17:34

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部