def __init__(self): import isceobj.InsarProc as InsarProc from iscesys.StdOEL.StdOELPy import StdOEL as ST self._frame = None self._sensorName = None self._metadataFile = None self._dopplerMethod = None self._sensor = None self._doppler = None self._stdWriter = ST() self._stdWriter.createWriters() self._stdWriter.configWriter("log", "", True, "insar.log") self._stdWriter.init() Application.__init__(self, "extractMetadata") return
from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF from isceobj import Alos2Proc logging.config.fileConfig( os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging', 'logging.conf') ) logger = logging.getLogger('isce.insar') REFERENCE_DIR = Application.Parameter('referenceDir', public_name='reference directory', default=None, type=str, mandatory=False, doc="reference data directory") SECONDARY_DIR = Application.Parameter('secondaryDir', public_name='secondary directory', default=None, type=str, mandatory=False, doc="secondary data directory") REFERENCE_FRAMES = Application.Parameter('referenceFrames', public_name = 'reference frames', default = None, type=str, container=list,
import sys from isce import logging import isce import isceobj import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF from isceobj import ScansarProc logger = logging.getLogger('isce.insar') SENSOR_NAME = Application.Parameter('sensorName', public_name='sensor name', default='ALOS2', type=str, mandatory=True, doc="Sensor name") FULL_APERTURE_PRODUCT = Application.Parameter( 'isFullApertureProduct', public_name='is full aperture product', default=False, type=bool, mandatory=True, doc="To indicate full aperture or burst-by-burst") BURST_OVERLAP_THRESHOLD = Application.Parameter( 'burstOverlapThreshold', public_name='burst overlap threshold', default=85.0, type=float,
from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF import isceobj.StripmapProc as StripmapProc from isceobj.Scene.Frame import FrameMixin from isceobj.Util.decorators import use_api logging.config.fileConfig( os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging', 'logging.conf')) logger = logging.getLogger('isce.insar') SENSOR_NAME = Application.Parameter( 'sensorName', public_name='sensor name', default=None, type=str, mandatory=False, doc='Sensor name for both master and slave') MASTER_SENSOR_NAME = Application.Parameter( 'masterSensorName', public_name='master sensor name', default=None, type=str, mandatory=True, doc="Master sensor name if mixing sensors") SLAVE_SENSOR_NAME = Application.Parameter( 'slaveSensorName', public_name='slave sensor name',
import isceobj import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF from isceobj import Alos2burstProc logging.config.fileConfig( os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging', 'logging.conf')) logger = logging.getLogger('isce.insar') MASTER_DIR = Application.Parameter('masterDir', public_name='master directory', default=None, type=str, mandatory=False, doc="master data directory") SLAVE_DIR = Application.Parameter('slaveDir', public_name='slave directory', default=None, type=str, mandatory=False, doc="slave data directory") MASTER_FRAMES = Application.Parameter('masterFrames', public_name='master frames', default=None, type=str, container=list,
#!/usr/bin/env python3 from __future__ import print_function from __future__ import absolute_import import isce from iscesys.Component.Application import Application NAME = Application.Parameter( 'gname', public_name='name to use in greeting', default='World', type=str, mandatory=False, doc="Name you want to be called when greeted by the code.") LANGUAGE = Application.Parameter( 'language', public_name='language to use in greeting', default='English', type=str, mandatory=False, doc="language you want to be used when greeted by the code.") GREETING = Application.Facility('greeting', public_name='Greeting message', module='greetings', factory='language', args=(LANGUAGE, ), mandatory=False, doc="Generate a greeting message.")
from isceobj.Planet.Ellipsoid import Ellipsoid from isceobj.Doppler.Doppler import Doppler from isceobj.Orbit.Orbit import Orbit #from iscesys.DateTimeUtil.DateTimeUtil import DateTimeUtil as DTU from iscesys import DateTimeUtil as DTU from iscesys.Component.Application import Application from isce.applications.insarApp import SENSOR_NAME, DOPPLER_METHOD from isceobj.Scene.Frame import FrameMixin from isceobj.Util.decorators import port SENSOR = Application.Facility('sensor', public_name='sensor', module='isceobj.Sensor', factory='createSensor', args=(SENSOR_NAME, ), mandatory=True, doc="Master raw data component") DOPPLER = Application.Facility('doppler', public_name='doppler', module='isceobj.Doppler', factory='createDoppler', args=(DOPPLER_METHOD, ), mandatory=False, doc="Master Doppler calculation method") class makeRawApp(Application): parameter_list = (SENSOR_NAME, DOPPLER_METHOD)
import isce import isceobj import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF from isceobj import TopsProc logger = logging.getLogger('isce.insar') SENSOR_NAME = Application.Parameter( 'sensorName', public_name='sensor name', default='SENTINEL1', type=str, mandatory=True, doc="Sensor name" ) DO_ESD = Application.Parameter('doESD', public_name = 'do ESD', default = True, type = bool, mandatory = False, doc = 'Perform ESD estimation') DO_DENSE_OFFSETS = Application.Parameter('doDenseOffsets', public_name='do dense offsets', default = False, type = bool,
#!/usr/bin/env python3 from __future__ import print_function from __future__ import absolute_import import isce from iscesys.Component.Application import Application NAME = Application.Parameter( 'gname', public_name='name to use in greeting', default="World", type=str, mandatory=False, doc="Name you want to be called when greeted by the code.") GREETING = Application.Facility('greeting', public_name='Greeting message', module='greetings', factory='english_standard', mandatory=False, doc='Generate a greeting message') class Greeter(Application): parameter_list = (NAME, ) facility_list = (GREETING, ) family = 'greeter' def main(self):
from isce import logging import isce import isceobj import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF import isceobj.InsarProc as InsarProc from isceobj.Scene.Frame import FrameMixin logger = logging.getLogger('isce.insar') SENSOR_NAME = Application.Parameter('sensorName', public_name='sensor name', default=None, type=str, mandatory=True, doc="Sensor name") OFFSET_METHOD = Application.Parameter( 'offsetMethod', public_name='slc offset method', default="offsetprf", type=str, mandatory=False, doc=("SLC offset estimation method name. " + "Use value=ampcor to run ampcor")) OFFSET_SEARCH_WINDOW_SIZE = Application.Parameter( 'offsetSearchWindowSize', public_name='offset search window size',
# regulations. User has the responsibility to obtain export licenses, or other # export authority as may be required before exporting such information to # foreign countries or providing access to foreign persons. # # Installation and use of this software is restricted by a license agreement # between the licensee and the California Institute of Technology. It is the # User's responsibility to abide by the terms of the license agreement. # # Author: Kosal Khun #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ from iscesys.Component.Application import Application SENSOR_NAME = Application.Parameter('sensorName', public_name='sensor name', default=None, type=str, mandatory=True, doc="Sensor name") PEG_LAT = Application.Parameter('pegLat', public_name='peg latitude (deg)', default=None, type='float', mandatory=False, doc='Peg Latitude in degrees') PEG_LON = Application.Parameter('pegLon', public_name='peg longitude (deg)', default=None, type='float', mandatory=False, doc='Peg Longitude in degrees') PEG_HDG = Application.Parameter('pegHdg',
#!/usr/bin/env python3 from __future__ import print_function from __future__ import absolute_import import isce from iscesys.Component.Application import Application NAME = Application.Parameter( 'name', public_name='name to use in greeting', default='World', type=str, mandatory=False, doc="Name you want to be called when greeted by the code.") LANGUAGE = Application.Parameter( 'language', public_name='language to use in greeting', default='English', type=str, mandatory=False, doc="language you want to be used when greeted by the code.") class Greeter(Application): parameter_list = (NAME, LANGUAGE) def _facilities(self): self.greeting = self.facility('greeting',
# # Author: Cunren Liang # Copyright 2015-present, NASA-JPL/Caltech # import isce import isceobj import iscesys from iscesys.Component.Application import Application DATA_DIR = Application.Parameter('dataDir', public_name='data directory', default=None, type=str, mandatory=False, doc="directory of data, where data of each date are in an individual directory") FRAMES = Application.Parameter('frames', public_name = 'frames', default = None, type=str, container=list, mandatory=False, doc = 'frames to process') POLARIZATION = Application.Parameter('polarization', public_name='polarization', default='HH', type=str,
doc = "Defines the spatial region in the format south north west east.\n" + \ "The values should be from (-90,90) for latitudes and (-180,180) for longitudes.") PAIRS = Component.Parameter('_pairs', public_name='pairs', default = [], container=list, type = float, mandatory = False, doc = "Set of latitude and longitude pairs for which action = 'download' is performed.\n" +\ "The format is [lat0,lon0,lat1,lon1,...,latn,lonn ].\n" +\ "The values should be from (-90,90) for latitudes and (-180,180) for longitudes") MANAGER = Application.Facility( '_manager', public_name='manager', module='iscesys.DataManager', factory='createManager', mandatory=False, args=(DATA_SOURCE, ), doc="Factory to instantiate the tile manager based on the DATA_SOURCE value" ) class DataTileManager(Application): def main(self): if (self._action == 'stitch' or self._action == 'stitchcorrect'): if (self._bbox): lat = self._bbox[0:2] lon = self._bbox[2:4] if not (self.manager.stitch(lat, lon)): print( 'Could not create a stitched file. Some tiles are missing'
import isceobj import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility import isceobj.InsarProc as InsarProc from isceobj.Scene.Frame import FrameMixin logging.config.fileConfig( os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging', 'logging.conf')) logger = logging.getLogger('isce.insar') SENSOR_NAME = Application.Parameter('sensorName', public_name='sensor name', default=None, type=str, mandatory=True, doc="Sensor name") OFFSET_METHOD = Application.Parameter( 'offsetMethod', public_name='slc offset method', default="offsetprf", type=str, mandatory=False, doc=("SLC offset estimation method name. " + "Use value=ampcor to run ampcor")) OFFSET_SEARCH_WINDOW_SIZE = Application.Parameter( 'offsetSearchWindowSize', public_name='offset search window size', default=None, type=int,
or, one of the following: > ./greeter.py --greeter.name\ to\ use\ in\ greeting=Joe > ./greeter.py --greeter."name to use in greeting"=Joe """ from __future__ import print_function import isce from iscesys.Component.Application import Application NAME = Application.Parameter('gname', public_name='name to use in greeting', default="World", type=str, mandatory=True, doc="Name you want to be called when greeted by the code." ) class Greeter(Application): """ """ parameter_list = (NAME,) #facility_list = () family = 'greeter' def main(self): print("Hello, {0}!".format(self.gname))
# # Author: Giangi Sacco #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ import isce import logging import logging.config from iscesys.Component.Application import Application from iscesys.Component.Component import Component from contrib.demUtils.SWBDStitcher import SWBDStitcher import os STITCHER = Application.Facility('_stitcher', public_name='wbd stitcher', module='contrib.demUtils', factory='createSWBDStitcher', args=('awbdstitcher', ), mandatory=True, doc="Water body stitcher") class Stitcher(Application): def main(self): # prevent from deliting local files if (self._stitcher._useLocalDirectory): self._stitcher._keepAfterFailed = True self._stitcher._keepWbds = True # is a metadata file is created set the right type if (self._stitcher._meta == 'xml'): self._stitcher.setCreateXmlMetadata(True)
from isce import logging import isce import isceobj import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF from isceobj import RtcProc from isceobj.Util.decorators import use_api logger = logging.getLogger('isce.grdsar') SENSOR_NAME = Application.Parameter('sensorName', public_name='sensor name', default='SENTINEL1', type=str, mandatory=True, doc="Sensor name") USE_HIGH_RESOLUTION_DEM_ONLY = Application.Parameter( 'useHighResolutionDemOnly', public_name='useHighResolutionDemOnly', default=False, type=int, mandatory=False, doc=("""If True and a dem is not specified in input, it will only download the SRTM highest resolution dem if it is available and fill the missing portion with null values (typically -32767).""")) DEM_FILENAME = Application.Parameter( 'demFilename', public_name='demFilename',
import iscesys from iscesys.Component.Application import Application from iscesys.Compatibility import Compatibility from iscesys.Component.Configurable import SELF from isceobj import TopsProc from isceobj.Util.decorators import use_api logging.config.fileConfig( os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging', 'logging.conf')) logger = logging.getLogger('isce.insar') SENSOR_NAME = Application.Parameter('sensorName', public_name='sensor name', default='SENTINEL1', type=str, mandatory=True, doc="Sensor name") DO_ESD = Application.Parameter('doESD', public_name='do ESD', default=True, type=bool, mandatory=False, doc='Perform ESD estimation') DO_DENSE_OFFSETS = Application.Parameter('doDenseOffsets', public_name='do dense offsets', default=False, type=bool, mandatory=False,
def __init__(self): Application.__init__(self, "makeraw") self.sensor = None self.doppler = None self.make_raw = make_raw()
import isceobj from isceobj import TopsProc from isce.applications.topsApp import TopsInSAR from iscesys.Component.Application import Application from isceobj.Util.decorators import use_api logging.config.fileConfig( os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging', 'logging.conf')) logger = logging.getLogger('isce.insar') WINDOW_SIZE_WIDTH = Application.Parameter( 'winwidth', public_name='Ampcor window width', default=32, type=int, mandatory=False, doc='Ampcor main window size width. Used in runDenseOffsets.') WINDOW_SIZE_HEIGHT = Application.Parameter( 'winhgt', public_name='Ampcor window height', default=32, type=int, mandatory=False, doc='Ampcor main window size height. Used in runDenseOffsets.') SEARCH_WINDOW_WIDTH = Application.Parameter( 'srcwidth', public_name='Ampcor search window width',