Merge pull request #94 from rtburns-jpl/isce-homing
Remove internal usage of ISCE_HOME env variableLT1AB
commit
f864b582a4
|
@ -72,7 +72,7 @@ jobs:
|
||||||
set -ex
|
set -ex
|
||||||
pwd
|
pwd
|
||||||
. /opt/conda/bin/activate root
|
. /opt/conda/bin/activate root
|
||||||
export ISCE_HOME=/root/project/install/isce
|
ISCE_HOME=/root/project/install/isce
|
||||||
export PATH="$ISCE_HOME/bin:$ISCE_HOME/applications:/opt/conda/bin:$PATH"
|
export PATH="$ISCE_HOME/bin:$ISCE_HOME/applications:/opt/conda/bin:$PATH"
|
||||||
export PYTHONPATH="/root/project/install:$PYTHONPATH"
|
export PYTHONPATH="/root/project/install:$PYTHONPATH"
|
||||||
export LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH"
|
||||||
|
|
|
@ -32,7 +32,12 @@ version = release_history # compatibility alias
|
||||||
__version__ = release_version
|
__version__ = release_version
|
||||||
|
|
||||||
import sys, os
|
import sys, os
|
||||||
isce_path = os.path.split(os.path.abspath(__file__))[0]
|
isce_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
import logging
|
||||||
|
from logging.config import fileConfig as _fc
|
||||||
|
_fc(os.path.join(isce_path, 'defaults', 'logging', 'logging.conf'))
|
||||||
|
|
||||||
sys.path.insert(1,isce_path)
|
sys.path.insert(1,isce_path)
|
||||||
sys.path.insert(1,os.path.join(isce_path,'applications'))
|
sys.path.insert(1,os.path.join(isce_path,'applications'))
|
||||||
sys.path.insert(1,os.path.join(isce_path,'components'))
|
sys.path.insert(1,os.path.join(isce_path,'components'))
|
||||||
|
|
|
@ -31,12 +31,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import math
|
import math
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
Compatibility.checkPythonVersion()
|
Compatibility.checkPythonVersion()
|
||||||
from isceobj.Location.Peg import Peg
|
from isceobj.Location.Peg import Peg
|
||||||
|
|
|
@ -30,11 +30,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
from isce import logging
|
||||||
import logging
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
Compatibility.checkPythonVersion()
|
Compatibility.checkPythonVersion()
|
||||||
from iscesys.Component.FactoryInit import FactoryInit
|
from iscesys.Component.FactoryInit import FactoryInit
|
||||||
|
|
|
@ -30,11 +30,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
from isce import logging
|
||||||
import logging
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
import isceobj
|
import isceobj
|
||||||
from iscesys.Component.FactoryInit import FactoryInit
|
from iscesys.Component.FactoryInit import FactoryInit
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
Compatibility.checkPythonVersion()
|
Compatibility.checkPythonVersion()
|
||||||
from iscesys.Component.FactoryInit import FactoryInit
|
from iscesys.Component.FactoryInit import FactoryInit
|
||||||
|
|
|
@ -30,12 +30,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import math
|
import math
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
import isceobj
|
import isceobj
|
||||||
from iscesys.Component.FactoryInit import FactoryInit
|
from iscesys.Component.FactoryInit import FactoryInit
|
||||||
from iscesys.DateTimeUtil.DateTimeUtil import DateTimeUtil as DTU
|
from iscesys.DateTimeUtil.DateTimeUtil import DateTimeUtil as DTU
|
||||||
|
|
|
@ -34,8 +34,7 @@ from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -46,11 +45,6 @@ from iscesys.Component.Configurable import SELF
|
||||||
import isceobj.InsarProc as InsarProc
|
import isceobj.InsarProc as InsarProc
|
||||||
from isceobj.Scene.Frame import FrameMixin
|
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')
|
logger = logging.getLogger('isce.insar')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,7 @@ import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import math
|
import math
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -1438,11 +1437,6 @@ class IsceApp(Application, FrameMixin):
|
||||||
sys.exit("Could not find the output directory: %s" % self.outputDir)
|
sys.exit("Could not find the output directory: %s" % self.outputDir)
|
||||||
os.chdir(self.outputDir) ##change working directory to given output directory
|
os.chdir(self.outputDir) ##change working directory to given output directory
|
||||||
|
|
||||||
##read configfile only here so that log path is in output directory
|
|
||||||
logging.config.fileConfig(
|
|
||||||
os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging',
|
|
||||||
'logging.conf')
|
|
||||||
)
|
|
||||||
logger = logging.getLogger('isce.isceProc')
|
logger = logging.getLogger('isce.isceProc')
|
||||||
logger.info(self.intromsg)
|
logger.info(self.intromsg)
|
||||||
self._isce.dataDirectory = self.outputDir
|
self._isce.dataDirectory = self.outputDir
|
||||||
|
|
|
@ -27,16 +27,8 @@
|
||||||
# Author: Walter Szeliga
|
# Author: Walter Szeliga
|
||||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import logging
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
|
from isce import logging
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
from iscesys.Component.Component import Component, Port
|
from iscesys.Component.Component import Component, Port
|
||||||
from isceobj.Planet.Ellipsoid import Ellipsoid
|
from isceobj.Planet.Ellipsoid import Ellipsoid
|
||||||
|
|
|
@ -30,10 +30,8 @@
|
||||||
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -44,11 +42,6 @@ from iscesys.Component.Configurable import SELF
|
||||||
from isceobj import RtcProc
|
from isceobj import RtcProc
|
||||||
from isceobj.Util.decorators import use_api
|
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.grdsar')
|
logger = logging.getLogger('isce.grdsar')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,13 +27,9 @@
|
||||||
# Authors: Giangi Sacco, Eric Gurrola
|
# Authors: Giangi Sacco, Eric Gurrola
|
||||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -43,11 +39,6 @@ from iscesys.Compatibility import Compatibility
|
||||||
from iscesys.Component.Configurable import SELF
|
from iscesys.Component.Configurable import SELF
|
||||||
from isceobj import ScansarProc
|
from isceobj import ScansarProc
|
||||||
|
|
||||||
logging.config.fileConfig(
|
|
||||||
os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging',
|
|
||||||
'logging.conf')
|
|
||||||
)
|
|
||||||
|
|
||||||
logger = logging.getLogger('isce.insar')
|
logger = logging.getLogger('isce.insar')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,8 @@
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -50,11 +48,6 @@ import isceobj.StripmapProc as StripmapProc
|
||||||
from isceobj.Scene.Frame import FrameMixin
|
from isceobj.Scene.Frame import FrameMixin
|
||||||
from isceobj.Util.decorators import use_api
|
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')
|
logger = logging.getLogger('isce.insar')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,10 +34,8 @@
|
||||||
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -47,11 +45,6 @@ from iscesys.Compatibility import Compatibility
|
||||||
from iscesys.Component.Configurable import SELF
|
from iscesys.Component.Configurable import SELF
|
||||||
from isceobj import TopsProc
|
from isceobj import TopsProc
|
||||||
|
|
||||||
logging.config.fileConfig(
|
|
||||||
os.path.join(os.environ['ISCE_HOME'], 'defaults', 'logging',
|
|
||||||
'logging.conf')
|
|
||||||
)
|
|
||||||
|
|
||||||
logger = logging.getLogger('isce.insar')
|
logger = logging.getLogger('isce.insar')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,8 @@
|
||||||
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
import isceobj
|
import isceobj
|
||||||
|
@ -42,11 +40,6 @@ from isce.applications.topsApp import TopsInSAR
|
||||||
from iscesys.Component.Application import Application
|
from iscesys.Component.Application import Application
|
||||||
from isceobj.Util.decorators import use_api
|
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')
|
logger = logging.getLogger('isce.insar')
|
||||||
|
|
||||||
WINDOW_SIZE_WIDTH = Application.Parameter(
|
WINDOW_SIZE_WIDTH = Application.Parameter(
|
||||||
|
|
|
@ -27,14 +27,7 @@
|
||||||
# Author: Walter Szeliga
|
# Author: Walter Szeliga
|
||||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
from isce import logging
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import logging
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
Compatibility.checkPythonVersion()
|
Compatibility.checkPythonVersion()
|
||||||
from iscesys.Component.FactoryInit import FactoryInit
|
from iscesys.Component.FactoryInit import FactoryInit
|
||||||
|
|
|
@ -29,11 +29,7 @@
|
||||||
|
|
||||||
|
|
||||||
import math
|
import math
|
||||||
import os
|
from isce import logging
|
||||||
import logging
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
|
|
||||||
from isceobj.Util.decorators import type_check, force, pickled, logged
|
from isceobj.Util.decorators import type_check, force, pickled, logged
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
|
@ -27,14 +27,7 @@
|
||||||
# Author: Walter Szeliga
|
# Author: Walter Szeliga
|
||||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
from isce import logging
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import logging
|
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
from isceobj.Sensor.ERS import ERS
|
from isceobj.Sensor.ERS import ERS
|
||||||
from isceobj.Scene.Track import Track
|
from isceobj.Scene.Track import Track
|
||||||
logger = logging.getLogger("testTrack")
|
logger = logging.getLogger("testTrack")
|
||||||
|
|
|
@ -45,10 +45,6 @@ ellipsoid oblate ellipsoid of revolution (e.g, WGS84) with all the
|
||||||
See mainpage.txt for a complete dump of geo's philosophy-- otherwise,
|
See mainpage.txt for a complete dump of geo's philosophy-- otherwise,
|
||||||
use the docstrings.
|
use the docstrings.
|
||||||
"""
|
"""
|
||||||
import os
|
|
||||||
isce_path = os.getenv("ISCE_HOME")
|
|
||||||
|
|
||||||
## \namespace geo Vector- and Affine-spaces, on Earth
|
## \namespace geo Vector- and Affine-spaces, on Earth
|
||||||
__all__ = ['euclid', 'coordinates', 'ellipsoid', 'charts', 'affine', 'motion']
|
__all__ = ['euclid', 'coordinates', 'ellipsoid', 'charts', 'affine', 'motion']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,7 @@ from __future__ import print_function
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import operator
|
import operator
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
from iscesys.DictUtils.DictUtils import DictUtils as DU
|
from iscesys.DictUtils.DictUtils import DictUtils as DU
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
Compatibility.checkPythonVersion()
|
Compatibility.checkPythonVersion()
|
||||||
|
|
|
@ -37,8 +37,7 @@ import isce
|
||||||
import zipfile
|
import zipfile
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
from iscesys.Component.Component import Component
|
from iscesys.Component.Component import Component
|
||||||
import shutil
|
import shutil
|
||||||
from urllib import request
|
from urllib import request
|
||||||
|
@ -325,8 +324,4 @@ class DataRetriever(Component):
|
||||||
# logger not defined until baseclass is called
|
# logger not defined until baseclass is called
|
||||||
|
|
||||||
if not self.logger:
|
if not self.logger:
|
||||||
logging.config.fileConfig(
|
|
||||||
os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf')
|
|
||||||
)
|
|
||||||
self.logger = logging.getLogger('isce.iscesys.DataRetriever')
|
self.logger = logging.getLogger('isce.iscesys.DataRetriever')
|
||||||
|
|
|
@ -29,10 +29,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
import logging.config
|
|
||||||
|
|
||||||
from iscesys.Compatibility import Compatibility
|
from iscesys.Compatibility import Compatibility
|
||||||
|
|
||||||
|
@ -40,9 +38,6 @@ from isceobj.Planet import Planet
|
||||||
from isceobj import Constants as CN
|
from isceobj import Constants as CN
|
||||||
from iscesys.Component.Component import Component, Port
|
from iscesys.Component.Component import Component, Port
|
||||||
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
|
|
||||||
RANGE_SAMPLING_RATE = Component.Parameter('rangeSamplingRate',
|
RANGE_SAMPLING_RATE = Component.Parameter('rangeSamplingRate',
|
||||||
public_name='range sampling rate',
|
public_name='range sampling rate',
|
||||||
type=float,
|
type=float,
|
||||||
|
|
|
@ -43,8 +43,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import math
|
import math
|
||||||
import urllib.request, urllib.parse, urllib.error
|
import urllib.request, urllib.parse, urllib.error
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
from iscesys.Component.Component import Component
|
from iscesys.Component.Component import Component
|
||||||
|
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
@ -1013,10 +1012,6 @@ class DemStitcher(Component):
|
||||||
# logger not defined until baseclass is called
|
# logger not defined until baseclass is called
|
||||||
|
|
||||||
if not self.logger:
|
if not self.logger:
|
||||||
logging.config.fileConfig(
|
|
||||||
os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf')
|
|
||||||
)
|
|
||||||
self.logger = logging.getLogger('isce.contrib.demUtils.DemStitcher')
|
self.logger = logging.getLogger('isce.contrib.demUtils.DemStitcher')
|
||||||
|
|
||||||
url = property(getUrl,setUrl)
|
url = property(getUrl,setUrl)
|
||||||
|
|
|
@ -39,8 +39,7 @@ from ctypes import cdll
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import urllib.request, urllib.error, urllib.parse
|
import urllib.request, urllib.error, urllib.parse
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
from iscesys.Component.Component import Component
|
from iscesys.Component.Component import Component
|
||||||
from contrib.demUtils.DemStitcher import DemStitcher as DS
|
from contrib.demUtils.DemStitcher import DemStitcher as DS
|
||||||
#Parameters definitions
|
#Parameters definitions
|
||||||
|
@ -291,7 +290,4 @@ class DemStitcher(DS):
|
||||||
#it's /srtm/version2_1/SRTM(1,3)
|
#it's /srtm/version2_1/SRTM(1,3)
|
||||||
self._remove = ['.jpg','.xml']
|
self._remove = ['.jpg','.xml']
|
||||||
if not self.logger:
|
if not self.logger:
|
||||||
logging.config.fileConfig(
|
|
||||||
os.environ['ISCE_HOME'] + '/library/applications/logging.conf'
|
|
||||||
)
|
|
||||||
self.logger = logging.getLogger('isce.contrib.demUtils.DemStitcherV3')
|
self.logger = logging.getLogger('isce.contrib.demUtils.DemStitcherV3')
|
||||||
|
|
|
@ -39,9 +39,8 @@ from ctypes import cdll
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
from isce import logging
|
||||||
import math
|
import math
|
||||||
import logging.config
|
|
||||||
import urllib.request, urllib.parse, urllib.error
|
import urllib.request, urllib.parse, urllib.error
|
||||||
from iscesys.Component.Component import Component
|
from iscesys.Component.Component import Component
|
||||||
from contrib.demUtils.DemStitcher import DemStitcher
|
from contrib.demUtils.DemStitcher import DemStitcher
|
||||||
|
@ -315,9 +314,6 @@ class SWBDStitcher(DemStitcher):
|
||||||
#it's /srtm/version2_1/SRTM(1,3)
|
#it's /srtm/version2_1/SRTM(1,3)
|
||||||
self._remove = ['.jpg','.xml']
|
self._remove = ['.jpg','.xml']
|
||||||
if not self.logger:
|
if not self.logger:
|
||||||
logging.config.fileConfig(
|
|
||||||
os.environ['ISCE_HOME'] + '/library/applications/logging.conf'
|
|
||||||
)
|
|
||||||
self.logger = logging.getLogger('isce.contrib.demUtils.SWBDStitcher')
|
self.logger = logging.getLogger('isce.contrib.demUtils.SWBDStitcher')
|
||||||
|
|
||||||
self.parameter_list = self.parameter_list + super(DemStitcher,self).parameter_list
|
self.parameter_list = self.parameter_list + super(DemStitcher,self).parameter_list
|
||||||
|
|
|
@ -35,8 +35,7 @@ import sys
|
||||||
import math
|
import math
|
||||||
from html.parser import HTMLParser
|
from html.parser import HTMLParser
|
||||||
import urllib.request, urllib.parse, urllib.error
|
import urllib.request, urllib.parse, urllib.error
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
from iscesys.Component.Component import Component
|
from iscesys.Component.Component import Component
|
||||||
import zipfile
|
import zipfile
|
||||||
import os
|
import os
|
||||||
|
@ -979,10 +978,6 @@ class MaskStitcher(Component):
|
||||||
# logger not defined until baseclass is called
|
# logger not defined until baseclass is called
|
||||||
|
|
||||||
if not self.logger:
|
if not self.logger:
|
||||||
logging.config.fileConfig(
|
|
||||||
os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf')
|
|
||||||
)
|
|
||||||
self.logger = logging.getLogger('isce.contrib.demUtils.MaskStitcher')
|
self.logger = logging.getLogger('isce.contrib.demUtils.MaskStitcher')
|
||||||
|
|
||||||
utl = property(getUrl,setUrl)
|
utl = property(getUrl,setUrl)
|
||||||
|
|
|
@ -32,10 +32,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import math
|
import math
|
||||||
import logging
|
from isce import logging
|
||||||
import logging.config
|
|
||||||
logging.config.fileConfig(os.path.join(os.environ['ISCE_HOME'], 'defaults',
|
|
||||||
'logging', 'logging.conf'))
|
|
||||||
|
|
||||||
import isce
|
import isce
|
||||||
from iscesys.Component.FactoryInit import FactoryInit
|
from iscesys.Component.FactoryInit import FactoryInit
|
||||||
|
|
Loading…
Reference in New Issue