Beispiel #1
0
APPLY_THERMAL_NOISE_CORRECTION = Application.Parameter(
    'apply_thermal_noise_correction',
    public_name='apply thermal noise correction',
    default=False,
    type=bool,
    mandatory=False,
    doc=
    'Flag to apply thermal noise correction. Currently only available for Sentinel-1.'
)

#Facility declarations
REFERENCE = Application.Facility('reference',
                                 public_name='Reference',
                                 module='isceobj.Sensor.GRD',
                                 factory='createSensor',
                                 args=(SENSOR_NAME, 'reference'),
                                 mandatory=True,
                                 doc="GRD data component")

DEM_STITCHER = Application.Facility(
    '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")
Beispiel #2
0
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)
Beispiel #3
0
    mandatory=False,
    doc=("If steps is used, the directory in which to store pickle objects."))
PICKLE_LOAD_DIR = Application.Parameter(
    'pickleLoadDir',
    public_name='pickle load directory',
    default='PICKLE',
    type=str,
    mandatory=False,
    doc=(
        "If steps is used, the directory from which to retrieve pickle objects"
    ))

MASTER = Application.Facility('master',
                              public_name='Master',
                              module='isceobj.Sensor',
                              factory='createSensor',
                              args=('sensorName', ),
                              mandatory=True,
                              doc="Master raw data component")
SLAVE = Application.Facility('slave',
                             public_name='Slave',
                             module='isceobj.Sensor',
                             factory='createSensor',
                             args=('sensorName', ),
                             mandatory=True,
                             doc="Slave raw data component")
MASTERDOP = Application.Facility('masterdop',
                                 public_name='Master Doppler',
                                 module='isceobj.Doppler',
                                 factory='createDoppler',
                                 args=('dopplerMethod', ),
Beispiel #4
0
    doc='')

ION_NUMBER_RANGE_LOOKS0 = Application.Parameter('ION_numberRangeLooks0',
    public_name='number of range looks at first stage for ionosphere phase unwrapping',
    default=40,
    type=int,
    mandatory=False,
    doc='')
#####################################################################

#Facility declarations
MASTER = Application.Facility(
    'master',
    public_name='Master',
    module='isceobj.Sensor.TOPS',
    factory='createSensor',
    args=(SENSOR_NAME, 'master'),
    mandatory=True,
    doc="Master raw data component"
                              )

SLAVE = Application.Facility(
    'slave',
    public_name='Slave',
    module='isceobj.Sensor.TOPS',
    factory='createSensor',
    args=(SENSOR_NAME,'slave'),
    mandatory=True,
    doc="Slave raw data component"
                             )
Beispiel #5
0
                                mandatory=False,
                                doc="If steps is used, the directory from which to retrieve pickle objects.")

RENDERER = Application.Parameter('renderer',
                                public_name='renderer',
                                default='xml',
                                type=str,
                                mandatory=True,
                                doc="Format in which the data is serialized when using steps. Options are xml (default) or pickle.")
#####################################################################

#Facility declarations
REFERENCE = Application.Facility('reference',
                                public_name='reference',
                                module='isceobj.Sensor.MultiMode',
                                factory='createSensor',
                                args=('ALOS2', 'reference'),
                                mandatory=True,
                                doc="reference component")

SECONDARY = Application.Facility('secondary',
                                public_name='secondary',
                                module='isceobj.Sensor.MultiMode',
                                factory='createSensor',
                                args=('ALOS2','secondary'),
                                mandatory=True,
                                doc="secondary component")

# RUN_UNWRAPPER = Application.Facility('runUnwrapper',
#                                 public_name='Run unwrapper',
#                                 module='isceobj.Alos2Proc',
Beispiel #6
0
    'renderer',
    public_name='renderer',
    default='pickle',
    type=str,
    mandatory=False,
    doc=(
    "Format in which the data is serialized when using steps. Options are xml (default) or pickle."
    )
                                        )

#Facility declarations
MASTER = Application.Facility(
    'master',
    public_name='Master',
    module='isceobj.Sensor',
    factory='createSensor',
    args=(SENSOR_NAME, 'master'),
    mandatory=True,
    doc="Master raw data component"
                              )

SLAVE = Application.Facility(
    'slave',
    public_name='Slave',
    module='isceobj.Sensor',
    factory='createSensor',
    args=(SENSOR_NAME,'slave'),
    mandatory=True,
    doc="Slave raw data component"
                             )
Beispiel #7
0
DISPERSIVE_FILTER_COHERENCE_THRESHOLD = Application.Parameter(
    'dispersive_filter_coherence_threshold',
    public_name='dispersive filter coherence threshold',
    default=0.5,
    type=float,
    mandatory=False,
    doc=
    'Coherence threshold to generate a mask file which gets used in the iterative filtering of the dispersive and non-disperive phase'
)
#Facility declarations

REFERENCE = Application.Facility('reference',
                                 public_name='Reference',
                                 module='isceobj.StripmapProc.Sensor',
                                 factory='createSensor',
                                 args=(SENSOR_NAME, REFERENCE_SENSOR_NAME,
                                       'reference'),
                                 mandatory=False,
                                 doc="Reference raw data component")

SECONDARY = Application.Facility('secondary',
                                 public_name='Secondary',
                                 module='isceobj.StripmapProc.Sensor',
                                 factory='createSensor',
                                 args=(SENSOR_NAME, SECONDARY_SENSOR_NAME,
                                       'secondary'),
                                 mandatory=False,
                                 doc="Secondary raw data component")

DEM_STITCHER = Application.Facility(
    'demStitcher',
RENDERER = Application.Parameter(
    'renderer',
    public_name='renderer',
    default='xml',
    type=str,
    mandatory=True,
    doc=
    "Format in which the data is serialized when using steps. Options are xml (default) or pickle."
)
#####################################################################

#Facility declarations
MASTER = Application.Facility('master',
                              public_name='master',
                              module='isceobj.Sensor.MultiMode',
                              factory='createSensor',
                              args=('ALOS2', 'master'),
                              mandatory=True,
                              doc="master component")

SLAVE = Application.Facility('slave',
                             public_name='slave',
                             module='isceobj.Sensor.MultiMode',
                             factory='createSensor',
                             args=('ALOS2', 'slave'),
                             mandatory=True,
                             doc="slave component")

# RUN_UNWRAPPER = Application.Facility('runUnwrapper',
#                                 public_name='Run unwrapper',
#                                 module='isceobj.Alos2burstProc',
Beispiel #9
0
#
# 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)
Beispiel #10
0
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):
        #the main greeting message
        self.greeting(self.gname)

        #some information on the inner workings
Beispiel #11
0
    type=bool,
    mandatory=False,
    doc=
    "True if unwrapping is desired. To be used in combination with UNWRAPPER_NAME."
)
DO_GEOCODE_INF = Application.Parameter(
    'do_geocodeinf',
    public_name='do geocode interferogram',
    default=False,
    type=bool,
    mandatory=False,
    doc="True if interferogram filtering is desired.")

STACK = Application.Facility('stack',
                             public_name='Stack',
                             module='isceobj.Stack',
                             factory='createStack',
                             mandatory=True,
                             doc="Stack component with a list of scenes.")
DEM = Application.Facility(
    'dem',
    public_name='Dem',
    module='isceobj.Image',
    factory='createDemImage',
    mandatory=False,
    doc=("Dem Image configurable component.  Do not include this in the " +
         "input file and an SRTM Dem will be downloaded for you."))
RUN_FORM_SLC = Application.Facility('runFormSLC',
                                    public_name='Form SLC',
                                    module='isceobj.InsarProc',
                                    factory='createFormSLC',
                                    args=(
Beispiel #12
0
    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'
Beispiel #13
0
    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.")


class Greeter(Application):

    parameter_list = (NAME, LANGUAGE)
    facility_list = (GREETING, )
    family = "greeter"

    def main(self):
        #The main greeting
        self.greeting(self.gname)