def main(): import sys import isceobj fi = FactoryInit() fi.fileInit = sys.argv[1] fi.defaultInitModule = 'InitFromXmlFile' fi.initComponentFromFile() hh = fi.getComponent('HH') hv = fi.getComponent('HV') vh = fi.getComponent('VH') vv = fi.getComponent('VV') #2013-06-03 Kosal: getComponent returns an object which attributes _leaderFileList and _imageFileList are dictionary #but in ALOS.py, extractImage() expects lists for f in [hh, hv, vh, vv]: f._leaderFileList = f._leaderFileList.values() f._imageFileList = f._imageFileList.values() #Kosal xmlFile = InitFromXmlFile(sys.argv[2]) variables = xmlFile.init() filter = variables['FILTER']['value'] filterSize = () if (filter != 'None'): filterSize = (variables['FILTER_SIZE_X']['value'],variables['FILTER_SIZE_Y']['value']) frOutput = variables['FARADAY_ROTATION']['value'] tecOutput = variables['TEC']['value'] phaseOutput = variables['PHASE']['value'] focuser = Focuser(hh=hh,hv=hv,vh=vh,vv=vv,fr=frOutput,tec=tecOutput,phase=phaseOutput) focuser.filter = filter focuser.filterSize = filterSize focuser.focuser()
def main(): import sys import isceobj fi = FactoryInit() fi.fileInit = sys.argv[1] fi.defaultInitModule = 'InitFromXmlFile' fi.initComponentFromFile() reference = fi.getComponent('Reference') focuser = Focuser(rawObj=reference) focuser.focuser()
def main(): import sys import isceobj fi = FactoryInit() fi.fileInit = sys.argv[1] fi.defaultInitModule = 'InitFromXmlFile' fi.initComponentFromFile() master = fi.getComponent('Master') toGeneric = ToGeneric(rawObj=master) toGeneric.convert()
def main(): import sys import isceobj fi = FactoryInit() fi.fileInit = sys.argv[1] fi.defaultInitModule = 'InitFromXmlFile' fi.initComponentFromFile() master = fi.getComponent('Master') focuser = Focuser(rawObj=master) focuser.focuser()