Skip to content

Commit

Permalink
fixed bug in createDataCube that led to wrong resampling of profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainPlattner committed Feb 28, 2022
1 parent ab491c3 commit b38f59e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions gprpy/makeDataCube.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def reduceSampling(gpr,nprofile,ntwtt):
gpr.twtt_pretopo = twttred
gpr.depth = twttred*gpr.velocity/2.0

return gpr,nprofile,ntwtt
return gpr



Expand Down Expand Up @@ -111,7 +111,6 @@ def makeDataCube(datalist,outname,nx=50,ny=50,nz=50,smooth=None,nprofile=None,nd
totprof = 0
for i in range(0,len(datalist)):
gpr=gp.gprpyProfile(datalist[i])
#gpr,nprofile,ndepth=reduceSampling(gpr,nprofile,ndepth)
if gpr.data_pretopo is None:
totlen = totlen + gpr.data.shape[0]*gpr.data.shape[1]
totprof = totprof + gpr.data.shape[1]
Expand All @@ -133,7 +132,7 @@ def makeDataCube(datalist,outname,nx=50,ny=50,nz=50,smooth=None,nprofile=None,nd
for i in tqdm(range(0,len(datalist))):
# These need to have a topo correction
gpr=gp.gprpyProfile(datalist[i])
gpr,nprofile,ndepth=reduceSampling(gpr,nprofile,ndepth)
gpr=reduceSampling(gpr,nprofile,ndepth)
if i==0:
currentmaxdepth = np.max(np.abs(gpr.depth))
depth = gpr.depth
Expand Down
2 changes: 1 addition & 1 deletion gprpy/toolbox/splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def showSplash(a,dir_path,widfac,highfac,fontfac):
'size': 13.5*fontfac
#'size': 45.6
}
a.text(50,-12000,'Version 1.0.10',fontdict=fontver)
a.text(50,-12000,'Version 1.0.11',fontdict=fontver)

# add UA logo
filename1=os.path.join(dir_path,'toolbox','splashdat',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name="gprpy",
version="1.0.10",
version="1.0.11",
author="Alain Plattner",
author_email="[email protected]",
description="GPRPy - open source ground penetrating radar processing and visualization",
Expand Down

0 comments on commit b38f59e

Please sign in to comment.