return parser.parse_args() if __name__ == '__main__': inps = cmdLineParse() #get user parameters from input idir = inps.idir burstSyncFile = inps.burst_sync_file dateReference = inps.ref_date dateSecondary = inps.sec_date ####################################################### #get date statistics dateDirs, dates, frames, swaths, dateIndexReference = stackDateStatistics( idir, dateReference) ndate = len(dates) nframe = len(frames) nswath = len(swaths) #compute burst synchronization trackReference = loadTrack(dateDirs[dateIndexReference], dates[dateIndexReference]) frames = [frame.frameNumber for frame in trackReference.frames] swaths = [swath.swathNumber for swath in trackReference.frames[0].swaths] startingSwath = swaths[0] endingSwath = swaths[-1] burstSync = ' reference date secondary date frame swath burst UNsync time [ms] burst sync [%]\n' burstSync += '==================================================================================================\n'
fitAdaptiveIon = inps.fit_adaptive filtSecondaryIon = inps.filt_secondary filteringWinsizeMinIon = inps.win_min filteringWinsizeMaxIon = inps.win_max filteringWinsizeSecondaryIon = inps.win_secondary filterStdIon = inps.filter_std_ion maskedAreasIon = inps.masked_areas ####################################################### pair = '{}-{}'.format(dateReference, dateSecondary) ms = pair ml1 = '_{}rlks_{}alks'.format(numberRangeLooks1, numberAzimuthLooks1) ml2 = '_{}rlks_{}alks'.format(numberRangeLooks1 * numberRangeLooks2, numberAzimuthLooks1 * numberAzimuthLooks2) dateDirs, dates, frames, swaths, dateIndexReference = stackDateStatistics( idir, dateReferenceStack) dateDirs2, dates2, frames2, swaths2, dateIndexReference2 = stackDateStatistics( idir2, dateReferenceStack) spotlightModes, stripmapModes, scansarNominalModes, scansarWideModes, scansarModes = acquisitionModesAlos2( ) trackReferenceStack = loadTrack(os.path.join(idir, dateReferenceStack), dateReferenceStack) trackReference = loadTrack(os.path.join(idir2, dateReference), dateReference) trackSecondary = loadTrack(os.path.join(idir2, dateSecondary), dateSecondary) subbandRadarWavelength, subbandBandWidth, subbandFrequencyCenter, subbandPrefix = subbandParameters( trackReferenceStack) self = createObject() self._insar = createObject()