コード例 #1
0
    def __init__(self,hh=None,hv=None,vh=None,vv=None,fr=None,tec=None,phase=None):
        """
        Constructor

        @param hh (\a isceobj.Sensor) the HH polarity Sensor object
        @param hv (\a isceobj.Sensor) the HV polarity Sensor object
        @param vh (\a isceobj.Sensor) the VH polarity Sensor object
        @param vv (\a isceobj.Sensor) the VV polarity Sensor object
        @param fr (\a string) the output file name for the Faraday rotation
        @param tec (\a string) the output file name for the Total Electron Count (TEC)
        @param phase (\a string) the output file name for the phase delay
        """
        self.hhObj = hh
        self.hvObj = hv
        self.vhObj = vh
        self.vvObj = vv
        self.frOutput = fr
        self.tecOutput = tec
        self.phaseOutput = phase
        self.filter = None
        self.filterSize = ()
        self.width = None
        self.length = None
        self.swap = False # Swap the endianness of the raw ALOS file
        self._fromRaw = True
        self.logger = logging.getLogger('isce.ISSI')

        # updated 07/24/2012
        super(Focuser, self).__init__()
コード例 #2
0
ファイル: DemStitcherV3.py プロジェクト: shakenbaby216/isce2
 def __setstate__(self, d):
     self.__dict__.update(d)
     self.logger = logging.getLogger('isce.contrib.demUtils.DemStitcherV3')
     libName = os.path.join(os.path.dirname(__file__), self._loadLibName)
     ##self._keepAfterFailed = False #if True keeps the downloaded files even if the stitching failed.
     self._lib = cdll.LoadLibrary(libName)
     return
コード例 #3
0
    def __init__(self, family='', name=''):

        self._downloadReport = {}
        # Note if _useLocalDirectory is True then the donwloadDir is the local directory
        self._inputFileList = []
        self._extension = '.shp'
        self._zip = '.zip'

        #to make it working with other urls, make sure that the second part of the url
        #it's /srtm/version2_1/SRTM(1,3)
        #self._filters = {'region1':['Region'],'region3':['Africa','Australia','Eurasia','Islands','America'],'fileExtension':['.hgt.zip']}
        self._filters = {'fileExtension': ['.zip']}
        self._remove = ['.jpg']
        self._metadataFilename = 'fileDem.dem'
        self._createXmlMetadata = None
        self._createRscMetadata = None
        self._regionList = {'W': [], 'E': []}
        self._failed = 'failed'
        self._succeded = 'succeded'
        self._image = None
        self._reference = 'EGM96'
        super(MaskStitcher,
              self).__init__(family if family else self.__class__.family,
                             name=name)
        # logger not defined until baseclass is called

        if not self.logger:
            self.logger = logging.getLogger(
                'isce.contrib.demUtils.MaskStitcher')
コード例 #4
0
    def __init__(self,family = '', name = ''):

        super(DemStitcher, self).__init__(family if family else  self.__class__.family, name=name)
        # logger not defined until baseclass is called
        self._extension = '.hgt'
        self._zip = '.zip'

        #to make it working with other urls, make sure that the second part of the url
        #it's /srtm/version2_1/SRTM(1,3)
        self._remove = ['.jpg','.xml']
        if not self.logger:
            self.logger = logging.getLogger('isce.contrib.demUtils.DemStitcherV3')
コード例 #5
0
ファイル: DemStitcher.py プロジェクト: shakenbaby216/isce2
    def __init__(self, family='', name=''):

        self._loadLibName = "demStitch.so"
        libName = os.path.join(os.path.dirname(__file__), self._loadLibName)
        ##self._keepAfterFailed = False #if True keeps the downloaded files even if the stitching failed.
        self._lib = cdll.LoadLibrary(libName)
        self._downloadReport = {}
        # Note if _useLocalDirectory is True then the donwloadDir is the local directory
        ##self._downloadDir = os.getcwd()#default to the cwd
        self._inputFileList = []
        ##self._useLocalDirectory = False
        ##self._outputFile = ''
        ##self._un = un
        ##self._pw = pw
        self._extension = '.hgt'
        self._zip = '.zip'

        #to make it working with other urls, make sure that the second part of the url
        #it's /srtm/version2_1/SRTM(1,3)
        self._filters = {
            'region1': ['Region'],
            'region3':
            ['Africa', 'Australia', 'Eurasia', 'Islands', 'America'],
            'fileExtension': ['.hgt.zip']
        }
        self._remove = ['.jpg']
        self._metadataFilename = 'fileDem.dem'
        self._createXmlMetadata = None
        self._createRscMetadata = None
        self._regionList = {'1': [], '3': []}
        ##self._keepDems = False
        self._fillingFilename = 'filling.hgt'  # synthetic tile to cover holes
        ##self._fillingValue = -32768 # fill the synthetic tile with this value
        ##self._noFilling = False
        self._failed = 'failed'
        self._succeded = 'succeded'
        self._image = None
        self._reference = 'EGM96'
        super(DemStitcher,
              self).__init__(family if family else self.__class__.family,
                             name=name)
        # logger not defined until baseclass is called

        if not self.logger:
            self.logger = logging.getLogger(
                'isce.contrib.demUtils.DemStitcher')
コード例 #6
0
    def __init__(self, family='', name=''):

        #map of the names before and after decompression
        self._namesMapping = {}
        self._downloadReport = {}
        # Note if _useLocalDirectory is True then the donwloadDir is the local directory
        ##self._downloadDir = os.getcwd()#default to the cwd

        self._failed = 'failed'
        self._succeded = 'succeeded'
        super(DataRetriever,
              self).__init__(family if family else self.__class__.family,
                             name=name)
        # logger not defined until baseclass is called

        if not self.logger:
            self.logger = logging.getLogger('isce.iscesys.DataRetriever')
コード例 #7
0
ファイル: make_raw.py プロジェクト: yxw027/isce2
    def __init__(self):
        self.sensor = None
        self.doppler = None
        self.dopplerValues = None
        self.frame = None
        # Derived Values
        self.spacecraftHeight = 0.0
        self.heightDt = 0.0
        self.velocity = 0.0
        self.squint = 0.0
        self.iqImage = None
        Component.__init__(self)

        sensorPort = Port(name='sensor', method=self.addSensor)
        dopplerPort = Port(name='doppler', method=self.addDoppler)

        self._inputPorts.add(sensorPort)
        self._inputPorts.add(dopplerPort)
        self.logger = logging.getLogger("isce.make_raw")
        return None
コード例 #8
0
 def __init__(self, arglist):
     FactoryInit.__init__(self)
     self.initFactory(arglist)
     self.sensorObj = self.getComponent('Sensor')
     self.logger = logging.getLogger('isce.extractHDROrbits')
コード例 #9
0
# U.S. export control laws and regulations and has been classified as 'EAR99 NLR'
# (No [Export] License Required except when exporting to an embargoed country,
# end user, or in support of a prohibited end use). By downloading this software,
# the user agrees to comply with all applicable U.S. export laws and regulations.
# The user has the responsibility to obtain export licenses, or other export
# authority as may be required before exporting this software to any 'EAR99'
# embargoed foreign country or citizen of those countries.
#
# Author: Walter Szeliga
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from isce import logging
from isceobj.Sensor.ERS import ERS
from isceobj.Scene.Track import Track

logger = logging.getLogger("testTrack")


def main():
    output = 'test.raw'
    frame1 = createERSFrame(
        leaderFile=
        '/Users/szeliga/data/InSAR/raw/ers/track134/frame2961/930913/SARLEADER199309132961f134t',
        imageryFile=
        '/Users/szeliga/data/InSAR/raw/ers/track134/frame2961/930913/IMAGERY199309132961f134t',
        output='frame2961.raw')
    frame2 = createERSFrame(
        leaderFile=
        '/Users/szeliga/data/InSAR/raw/ers/track134/frame2979/930913/SARLEADER199309132979f134t',
        imageryFile=
        '/Users/szeliga/data/InSAR/raw/ers/track134/frame2979/930913/IMAGERY199309132979f134t',
コード例 #10
0
ファイル: focus.py プロジェクト: shakenbaby216/isce2
 def __init__(self, rawObj=None):
     self.rawObj = rawObj
     self.logger = logging.getLogger('isce.focus')
コード例 #11
0
ファイル: rtcApp.py プロジェクト: sssangha/isce2
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

import time
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 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
コード例 #12
0
ファイル: topsApp.py プロジェクト: yxw027/isce2


import time
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 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,
コード例 #13
0
 def __init__(self, arglist):
     FactoryInit.__init__(self)
     self.initFactory(arglist)
     self.referenceObj = self.getComponent('Reference')
     self.secondaryObj = self.getComponent('Secondary')
     self.logger = logging.getLogger('isce.calculateBaseline')
コード例 #14
0
ファイル: make_raw.py プロジェクト: yxw027/isce2
 def __setstate__(self, d):
     self.__dict__.update(d)
     self.logger = logging.getLogger("isce.make_raw")
     return None
コード例 #15
0
 def __init__(self,arglist):
     FactoryInit.__init__(self)
     self.initFactory(arglist)
     self.logger = logging.getLogger('isce.viewMetadata')
     self.sensorObj = self.getComponent('Sensor')
     self.renderer = self.getComponent('XmlRenderer')
コード例 #16
0
 def __init__(self,arglist):
     FactoryInit.__init__(self)
     self.initFactory(arglist)
     self.sensorObj = self.getComponent('Sensor')
     self.logger = logging.getLogger('isce.calculatePegPoint')
コード例 #17
0
 def __setstate__(self, d):
     self.__dict__.update(d)
     self.logger = logging.getLogger('isce.iscesys.DataRetriever')
     return
コード例 #18
0
 def __init__(self, rawObj=None):
     self.rawObj = rawObj
     self.logger = logging.getLogger('isce.toGeneric')
コード例 #19
0
ファイル: SWBDStitcher.py プロジェクト: yxw027/isce2
    def __setstate__(self, d):
        self.__dict__.update(d)
        self.logger = logging.getLogger('isce.contrib.demUtils.SWBDStitcher')

        return
コード例 #20
0
 def __init__(self, arglist):
     FactoryInit.__init__(self)
     self.initFactory(arglist)
     self.masterObj = self.getComponent('Master')
     self.slaveObj = self.getComponent('Slave')
     self.logger = logging.getLogger('isce.calculateBaseline')