def __init__(self, family='', name='', cmdline=None): import isceobj super(_InsarBase, self).__init__(family=family, name=name, cmdline=cmdline) from iscesys.StdOEL.StdOELPy import create_writer self._stdWriter = create_writer("log", "", True, filename="insar.log") self._add_methods() procDoc = isceobj.createCatalog('insarProc') self._insar = InsarProc.InsarProc(name='insarApp_conf', procDoc=procDoc) self.insar.procDoc._addItem( "ISCE_VERSION", "Release: %s, svn-%s, %s. Current svn-%s" % (isce.release_version, isce.release_svn_revision, isce.release_date, isce.svn_revision), ["insarProc"]) return None
def __init__(self, family='', name='', cmdline=None): """ Initialize the application: read the xml file and prepare the application. """ super().__init__(family=family if family else self.__class__.family, name=name, cmdline=cmdline) now = datetime.datetime.now() ##add timestamp to isceProc.xml file, so that they don't overwrite themselves self._isce = IsceProc.IsceProc( procDoc=isceobj.createCatalog('isceProc_%s' % now.strftime('%Y%m%d%H%M%S'))) self._isce.procDoc._addItem( "ISCE_VERSION", "Release: %s, svn-%s, %s. Current svn-%s" % (isce.release_version, isce.release_svn_revision, isce.release_date, isce.svn_revision), ["isceProc"]) self._stdWriter = create_writer("log", "", True, filename="isce.log") self._add_methods() self.pairsToCoreg = [] ##pairs to coregister self.intromsg = '' ##intro message self.peg = None
public_name='demStitcher', module='iscesys.DataManager', factory='createManager', args=( 'dem1', 'iscestitcher', ), mandatory=False, doc="Object that based on the frame bounding boxes creates a DEM") _GRD = Application.Facility('_grd', public_name='rtcproc', module='isceobj.RtcProc', factory='createRtcProc', args=('rtcAppContext', isceobj.createCatalog('rtcProc')), mandatory=False, doc="RtcProc object") class GRDSAR(Application): family = 'grdsar' ## Define Class parameters in this list parameter_list = (SENSOR_NAME, USE_HIGH_RESOLUTION_DEM_ONLY, DEM_FILENAME, NUMBER_AZIMUTH_LOOKS, NUMBER_RANGE_LOOKS, POSTING, GEOCODE_BOX, EPSG, GSPACING, INTMETHOD, PICKLE_DUMPER_DIR, PICKLE_LOAD_DIR, RENDERER, POLARIZATIONS, GEOCODE_LIST, APPLY_THERMAL_NOISE_CORRECTION)
RUN_UNWRAP_2STAGE = Application.Facility( 'runUnwrap2Stage', public_name='Run unwrapper 2 Stage', module='isceobj.TopsProc', factory='createUnwrap2Stage', args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), mandatory=False, doc="Unwrapping module" ) _INSAR = Application.Facility( '_insar', public_name='topsproc', module='isceobj.TopsProc', factory='createTopsProc', args = ('topsAppContext',isceobj.createCatalog('topsProc')), mandatory=False, doc="TopsProc object" ) ## Common interface for all insar applications. class TopsInSAR(Application): family = 'topsinsar' ## Define Class parameters in this list parameter_list = (SENSOR_NAME, UNWRAPPER_NAME, DEM_FILENAME, GEOCODE_DEM_FILENAME, NUMBER_AZIMUTH_LOOKS,
RUN_UNWRAP_2STAGE = Application.Facility( 'runUnwrap2Stage', public_name='Run unwrapper 2 Stage', module='isceobj.InsarProc', factory='createUnwrap2Stage', args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), mandatory=False, doc="Unwrapping module" ) _INSAR = Application.Facility( '_insar', public_name='insarproc', module='isceobj.InsarProc', factory='createInsarProc', args = ('insarAppContext',isceobj.createCatalog('insarProc')), mandatory=False, doc="InsarProc object" ) ## Common interface for all insar applications. class _InsarBase(Application, FrameMixin): family = 'insar' ## Define Class parameters in this list parameter_list = (SENSOR_NAME, OFFSET_METHOD, OFFSET_SEARCH_WINDOW_SIZE, PEG_SELECT, PEG_LAT,
RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', public_name='Run unwrapper 2 Stage', module='isceobj.TopsProc', factory='createUnwrap2Stage', args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), mandatory=False, doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='topsproc', module='isceobj.TopsProc', factory='createTopsProc', args=('topsAppContext', isceobj.createCatalog('topsProc')), mandatory=False, doc="TopsProc object") ## Common interface for all insar applications. class TopsInSAR(Application): family = 'topsinsar' ## Define Class parameters in this list parameter_list = ( SENSOR_NAME, UNWRAPPER_NAME, DEM_FILENAME, GEOCODE_DEM_FILENAME, NUMBER_AZIMUTH_LOOKS,
# mandatory=False, # doc="Unwrapping module") # RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', # public_name='Run unwrapper 2 Stage', # module='isceobj.Alos2Proc', # factory='createUnwrap2Stage', # args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), # mandatory=False, # doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='alos2proc', module='isceobj.Alos2Proc', factory='createAlos2Proc', args = ('alos2AppContext',isceobj.createCatalog('alos2Proc')), mandatory=False, doc="Alos2Proc object") ## Common interface for all insar applications. class Alos2InSAR(Application): family = 'alos2insar' parameter_list = (REFERENCE_DIR, SECONDARY_DIR, REFERENCE_FRAMES, SECONDARY_FRAMES, REFERENCE_POLARIZATION, SECONDARY_POLARIZATION, STARTING_SWATH, ENDING_SWATH,
RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', public_name='Run unwrapper 2 Stage', module='isceobj.ScansarProc', factory='createUnwrap2Stage', args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), mandatory=False, doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='scansarproc', module='isceobj.ScansarProc', factory='createScansarProc', args=('scansarAppContext', isceobj.createCatalog('scansarProc')), mandatory=False, doc="ScansarProc object") ## Common interface for all insar applications. class ScansarInSAR(Application): family = 'scansarinsar' ## Define Class parameters in this list parameter_list = ( SENSOR_NAME, UNWRAPPER_NAME, DEM_FILENAME, GEOCODE_DEM_FILENAME, BURST_OVERLAP_THRESHOLD, NUMBER_AZIMUTH_LOOKS, NUMBER_RANGE_LOOKS, FILTER_STRENGTH, OFFSET_SNR_THRESHOLD, DO_INSAR, DO_UNWRAP, USE_HIGH_RESOLUTION_DEM_ONLY, GEOCODE_BOX, PICKLE_DUMPER_DIR, PICKLE_LOAD_DIR, RENDERER, DO_UNWRAP_2STAGE, UNWRAPPER_2STAGE_NAME,
RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', public_name='Run unwrapper 2 Stage', module='isceobj.TopsProc', factory='createUnwrap2Stage', args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), mandatory=False, doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='insar', module='isceobj.StripmapProc', factory='createStripmapProc', args=('stripmapAppContext', isceobj.createCatalog('stripmapProc')), mandatory=False, doc="InsarProc object") ## Common interface for stripmap insar applications. class _RoiBase(Application, FrameMixin): family = 'insar' ## Define Class parameters in this list parameter_list = ( SENSOR_NAME, MASTER_SENSOR_NAME, SLAVE_SENSOR_NAME, FILTER_STRENGTH, CORRELATION_METHOD,
# doc="Unwrapping module") # RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', # public_name='Run unwrapper 2 Stage', # module='isceobj.Alos2burstProc', # factory='createUnwrap2Stage', # args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), # mandatory=False, # doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='alos2burstproc', module='isceobj.Alos2burstProc', factory='createAlos2burstProc', args=('alos2burstAppContext', isceobj.createCatalog('alos2burstProc')), mandatory=False, doc="Alos2burstProc object") ## Common interface for all insar applications. class Alos2burstInSAR(Application): family = 'alos2burstinsar' parameter_list = ( MASTER_DIR, SLAVE_DIR, MASTER_FRAMES, SLAVE_FRAMES, MASTER_POLARIZATION, SLAVE_POLARIZATION, STARTING_SWATH,
# mandatory=False, # doc="Unwrapping module") # RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', # public_name='Run unwrapper 2 Stage', # module='isceobj.Alos2burstProc', # factory='createUnwrap2Stage', # args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), # mandatory=False, # doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='alos2burstproc', module='isceobj.Alos2burstProc', factory='createAlos2burstProc', args = ('alos2burstAppContext',isceobj.createCatalog('alos2burstProc')), mandatory=False, doc="Alos2burstProc object") ## Common interface for all insar applications. class Alos2burstInSAR(Application): family = 'alos2burstinsar' parameter_list = (REFERENCE_DIR, SECONDARY_DIR, REFERENCE_FRAMES, SECONDARY_FRAMES, REFERENCE_POLARIZATION, SECONDARY_POLARIZATION, STARTING_SWATH, ENDING_SWATH,
RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', public_name='Run unwrapper 2 Stage', module='isceobj.InsarProc', factory='createUnwrap2Stage', args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), mandatory=False, doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='insarproc', module='isceobj.InsarProc', factory='createInsarProc', args=('insarAppContext', isceobj.createCatalog('insarProc')), mandatory=False, doc="InsarProc object") ## Common interface for all insar applications. class _InsarBase(Application, FrameMixin): family = 'insar' ## Define Class parameters in this list parameter_list = (SENSOR_NAME, OFFSET_METHOD, OFFSET_SEARCH_WINDOW_SIZE, PEG_SELECT, PEG_LAT, PEG_LON, PEG_HDG, PEG_RAD, FILTER_STRENGTH, CORRELATION_METHOD, DOPPLER_METHOD, USE_DOP, UNWRAP, UNWRAPPER_NAME, DO_UNWRAP, DO_OFFSETPRF, DO_RGOFFSET, USE_HIGH_RESOLUTION_DEM_ONLY, DEM_FILENAME, GEO_POSTING, POSTING, RANGE_LOOKS, AZ_LOOKS, PATCH_SIZE,
'demStitcher', public_name='demStitcher', module='iscesys.DataManager', factory='createManager', args=('dem1','iscestitcher',), mandatory=False, doc="Object that based on the frame bounding boxes creates a DEM" ) _GRD = Application.Facility( '_grd', public_name='rtcproc', module='isceobj.RtcProc', factory='createRtcProc', args = ('rtcAppContext',isceobj.createCatalog('rtcProc')), mandatory=False, doc="RtcProc object" ) class GRDSAR(Application): family = 'grdsar' ## Define Class parameters in this list parameter_list = (SENSOR_NAME, USE_HIGH_RESOLUTION_DEM_ONLY, DEM_FILENAME, NUMBER_AZIMUTH_LOOKS, NUMBER_RANGE_LOOKS, POSTING,
# doc="Unwrapping module") # RUN_UNWRAP_2STAGE = Application.Facility('runUnwrap2Stage', # public_name='Run unwrapper 2 Stage', # module='isceobj.Alos2Proc', # factory='createUnwrap2Stage', # args=(SELF(), DO_UNWRAP_2STAGE, UNWRAPPER_NAME), # mandatory=False, # doc="Unwrapping module") _INSAR = Application.Facility('_insar', public_name='alos2proc', module='isceobj.Alos2Proc', factory='createAlos2Proc', args=('alos2AppContext', isceobj.createCatalog('alos2Proc')), mandatory=False, doc="Alos2Proc object") ## Common interface for all insar applications. class Alos2InSAR(Application): family = 'alos2insar' parameter_list = ( REFERENCE_DIR, SECONDARY_DIR, REFERENCE_FRAMES, SECONDARY_FRAMES, REFERENCE_POLARIZATION, SECONDARY_POLARIZATION, STARTING_SWATH,