Arcmap的Mosaic命令行处理

示例的第一步是做Mosaic,打开命令行窗口,找到要使用的工具(或脚本)命令,注意F8键的使用,第二步的extent1为利用F8首先定好的extent内部变量,第三步使用掩膜来切割 数据。代码如下:

MosaicToNewRaster G:\当前进展\200106\NDVI_Arcmap\原始数据\MOD13A1.A2001001.h27v06.005.2008270034040.hdf;G:\当前进展\200106\NDVI_Arcmap\原始数据\MOD13A1.A2001001.h28v06.005.2008270034534.hdf G:\当前进展\200106\NDVI_Arcmap\Mosaic MOD13A1.A2001001.albers.500m_16_days_NDVI.tif PROJCS['Albers Conical Equal Area',GEOGCS['GCS_Krasovsky_1940',DATUM['D_Krasovsky_1940',SPHEROID['Krasovsky_1940',6378245.0,298.3]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',105.0],PARAMETER['Standard_Parallel_1',25.0],PARAMETER['Standard_Parallel_2',47.0],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]] 16_BIT_SIGNED 500 1 BLEND FIRST

Extent extent1

ExtractByMask_sa G:\当前进展\200106\NDVI_Arcmap\Mosaic\MOD13A1.A2001001.albers.500m_16_days_NDVI.tif G:\当前进展\200106\BoundaryGX_Albers.shp G:\当前进展\200106\NDVI_Arcmap\Mosaic\MOD13A1.A2001001.albers.500m_16_days_NDVI_gx.tif

 

ps. 在作批处理运算时,最好把代码拷贝到Word里检查下格式,发现多余的回车符应及时去掉,否则会出错!

posted on 2010-06-14 19:08  YISONG  阅读(906)  评论(0编辑  收藏  举报

导航