Esempio n. 1
0
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)
Esempio n. 2
0
def test_image():
    data_path = "H:\ETM\TIF2"
    flist = SMUP_Image.scanPath("tif",data_path)
    print flist.count
    #SMUP_Image.list2File("I:\ETM\FileList.txt",flist)
    test_image_PixelFormat(flist)
Esempio n. 3
0
def listFile(data_path):
	print "Scan Path ",data_path,
	flist = SMUP_Image.scanPath("tif",data_path)
	print "文件总数: ", len(flist)
	return flist
Esempio n. 4
0
# tuple of all parallel python servers to connect with
ppservers = ()
#ppservers = ("127.0.0.1:60000", )

if len(sys.argv) > 1:
    ncpus = int(sys.argv[1])
    job_server = pp.Server(ncpus, ppservers=ppservers)
else:
    job_server = pp.Server(ppservers=ppservers)
print "Starting pp with", job_server.get_ncpus(), "workers"

#=================================================================
#scan path,prepare TaskList.
data_path = "H:\ETM\TIF2"
#data_path = "I:\ETM\TIF"
flist = SMUP_Image.scanPath("tif",data_path)
print "Scan Path ",data_path,"Finish."    

def Task_Call(f):
	print "Task_Call For: ",f
	#print SMUP_Image.getPixelFormatOne(SMUP_Image.getType("tif"),f),'\r\n'
	SMUP_Image.Tif2UDBOne(f,"I:\\ETM\\UDB\\")
	return True

def Task_Func(f):
	call = Task_Call(f)
	return call 

jobs = []
for f in flist:
	print "Commit Task ",f