def imageMosaic(data_path,udbpath,dtName): flist = SMUP_Image.scanPath("tif",data_path) print "文件总数: ", len(flist) #显示影像文件的拼合后全幅信息 print "Entire Image Dataset Info:", SMUP_Image.calcDatasetInfo(SMUP_Image.getType("tif"),flist) SMUP_Image.Tif2UDB_Mosaic(SMUP_Image.getType("tif"),flist,udbpath,dtName)
def imageMosaic(): strSourcePath = "H:\SRTM\GeoShader01" strOutputPath = "H:\SRTM\UDB" strOutputFileName = "SRTM_GeoShader01" print "Mosaic: ", strSourcePath print "Output: ", strOutputPath,strOutputFileName SMUP_Image.Tif2UDB_Mosaic(SMUP_Image.getType("tif"), listFile(strSourcePath), strOutputPath, strOutputFileName,False)
def test_image_Info(flist): for f in flist: print SMUP_Image.calcDatasetInfoOne(SMUP_Image.getType("tif"),f),'\r\n'
def test_image_PixelFormat(flist): for f in flist: print SMUP_Image.getPixelFormatOne(SMUP_Image.getType("tif"),f),'\r\n'