DenseOffsets with PyCuAmpcor: use '.slc.vrt' instead of '.slc' as inputs

LT1AB
Lijun Zhu 2019-11-21 17:23:49 -08:00 committed by piyushrpt
parent 434a71322f
commit 0855bf2640
2 changed files with 53 additions and 53 deletions

View File

@ -186,10 +186,10 @@ def runDenseOffsetsGPU(self):
objOffset.deviceID = -1 objOffset.deviceID = -1
objOffset.nStreams = 2 objOffset.nStreams = 2
objOffset.derampMethod = 0 objOffset.derampMethod = 0
objOffset.masterImageName = master objOffset.masterImageName = master + '.vrt'
objOffset.masterImageHeight = length objOffset.masterImageHeight = length
objOffset.masterImageWidth = width objOffset.masterImageWidth = width
objOffset.slaveImageName = slave objOffset.slaveImageName = slave + '.vrt'
objOffset.slaveImageHeight = length objOffset.slaveImageHeight = length
objOffset.slaveImageWidth = width objOffset.slaveImageWidth = width
@ -274,7 +274,7 @@ def runDenseOffsetsGPU(self):
outImg.renderHdr() outImg.renderHdr()
snrImg = isceobj.createImage() snrImg = isceobj.createImage()
snrImg.setFilename( objOffset.snrImageName.decode('utf8')) snrImg.setFilename( objOffset.snrImageName.decode('utf-8'))
snrImg.setDataType('FLOAT') snrImg.setDataType('FLOAT')
snrImg.setBands(1) snrImg.setBands(1)
snrImg.setWidth(objOffset.numberWindowAcross) snrImg.setWidth(objOffset.numberWindowAcross)

View File

@ -13,7 +13,7 @@ from isceobj.Location.Offset import OffsetField
from iscesys.StdOEL.StdOELPy import create_writer from iscesys.StdOEL.StdOELPy import create_writer
#from mroipac.ampcor.DenseAmpcor import DenseAmpcor #from mroipac.ampcor.DenseAmpcor import DenseAmpcor
from PyCuAmpcor import PyCuAmpcor from contrib.PyCuAmpcor import PyCuAmpcor
from grossOffsets import grossOffsets from grossOffsets import grossOffsets
#from isceobj.Utils.denseoffsets import denseoffsets #from isceobj.Utils.denseoffsets import denseoffsets
@ -123,10 +123,10 @@ def estimateOffsetField(master, slave, inps=None):
objOffset.derampMethod = inps.deramp objOffset.derampMethod = inps.deramp
print(objOffset.derampMethod) print(objOffset.derampMethod)
objOffset.masterImageName = master objOffset.masterImageName = master + '.vrt'
objOffset.masterImageHeight = length objOffset.masterImageHeight = length
objOffset.masterImageWidth = width objOffset.masterImageWidth = width
objOffset.slaveImageName = slave objOffset.slaveImageName = slave + '.vrt'
objOffset.slaveImageHeight = length objOffset.slaveImageHeight = length
objOffset.slaveImageWidth = width objOffset.slaveImageWidth = width