Esempio n. 1
0
def loadStackUserParameters(filename):
    import os
    from Stack import Stack

    #application object cannot recognize extension
    if filename.endswith('.xml'):
        filename = os.path.splitext(filename)[0]

    stack = Stack(name=filename)
    stack.configure()

    return stack
Esempio n. 2
0
    inps = cmdLineParser()
    weightDS = inps.weightDS
    inps.outputDir = os.path.abspath(inps.outputDir)
    outDir = os.path.join(inps.outputDir, "fullStack")
    compressedSlcDir = os.path.join(inps.outputDir, "compressedSlc")
    if not os.path.exists(compressedSlcDir):
       os.makedirs(compressedSlcDir)

    #*************************************************************#
    # get vrt files for whole stack

    stack = Stack(inps.inputDir)
    stack.bbox = inps.bbox
    stack.gatherSLCs()
    stack.getDates()
    stack.configure(outDir)
    stack.writeStackVRT()

    # run calamp, ampdispersion, nmap to get wights (Weights won't change any )
    # This weight dataset will be used for all mini stacks
    #For testing
    #********************************#

    # get vrt files for first mini stack

    runEvdOnMiniStack = True


    
    #*************************************************************#
    # while there are more mini stacks kepp process them