From c2a4a4a08e4d853b8c963fbf6e9446573bca9b30 Mon Sep 17 00:00:00 2001 From: CunrenLiang <56097947+CunrenLiang@users.noreply.github.com> Date: Mon, 13 Apr 2020 12:11:04 -0700 Subject: [PATCH 1/2] add back from scipy.interpolate import interp1d add back the following imports: 1709a1710,1711 > from scipy import interpolate > from scipy.interpolate import interp1d 2119a2122,2123 > from scipy import interpolate > from scipy.interpolate import interp1d --- components/isceobj/TopsProc/runIon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/isceobj/TopsProc/runIon.py b/components/isceobj/TopsProc/runIon.py index de9e2a1..bedfbaa 100644 --- a/components/isceobj/TopsProc/runIon.py +++ b/components/isceobj/TopsProc/runIon.py @@ -1707,6 +1707,8 @@ def computeDopplerOffset(burst, firstline, lastline, firstcolumn, lastcolumn, nr def grd2ion(self, ionParam): + from scipy import interpolate + from scipy.interpolate import interp1d print('resampling ionosphere from ground to ionospheric layer') #get files @@ -2117,6 +2119,8 @@ def ionosphere_shift(self, ionParam): def ion2grd(self, ionParam): + from scipy import interpolate + from scipy.interpolate import interp1d ################################################# #SET PARAMETERS HERE From ebe27ec44cab567590f6d7a67cb5904a8a87cb5b Mon Sep 17 00:00:00 2001 From: CunrenLiang <56097947+CunrenLiang@users.noreply.github.com> Date: Mon, 13 Apr 2020 12:34:51 -0700 Subject: [PATCH 2/2] remove 'from scipy.interpolate import interp1d' remove the following from routines where it is not needed: > from scipy import interpolate > from scipy.interpolate import interp1d --- components/isceobj/TopsProc/runIon.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/isceobj/TopsProc/runIon.py b/components/isceobj/TopsProc/runIon.py index bedfbaa..e2258ae 100644 --- a/components/isceobj/TopsProc/runIon.py +++ b/components/isceobj/TopsProc/runIon.py @@ -1680,8 +1680,6 @@ def computeDopplerOffset(burst, firstline, lastline, firstcolumn, lastcolumn, nr output: first lines > 0, last lines < 0 ''' - from scipy import interpolate - from scipy.interpolate import interp1d Vs = np.linalg.norm(burst.orbit.interpolateOrbit(burst.sensingMid, method='hermite').getVelocity()) Ks = 2 * Vs * burst.azimuthSteeringRate / burst.radarWavelength @@ -1896,8 +1894,6 @@ def filt_gaussian(self, ionParam): currently not implemented. a less accurate method is to use ionsphere without any projection ''' - from scipy import interpolate - from scipy.interpolate import interp1d ################################################# #SET PARAMETERS HERE