Skip to content

Commit

Permalink
Changed CDF to default values (Gaussian smoothing - off)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrt75 committed Mar 7, 2018
1 parent 9533b62 commit faa8a2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Converters_Scaled_Units/CDF/CDF_NLIST.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ def elapsed():


# Gaussian smoothing of denisty profiles in X/Z and Y/Z
Hz=ndimage.gaussian_filter(Hz,1.50)
HxHz=ndimage.gaussian_filter(HxHz,1.50)
HyHz=ndimage.gaussian_filter(HyHz,1.50)
#Hz=ndimage.gaussian_filter(Hz,1.50)
#HxHz=ndimage.gaussian_filter(HxHz,1.50)
#HyHz=ndimage.gaussian_filter(HyHz,1.50)


# Initiate empty array for data points in histogram (move the histogram to array like: Value,X,Y,Z)
Expand Down Expand Up @@ -616,10 +616,10 @@ def main():
print 'Starting to interpolate momentum data... - takes time'

def Calculate_PX():
Full_PX = interpolate.griddata((mA_X.ravel(), mA_Y.ravel(), mA_Z.ravel()),mA_PX.ravel(),(Full_X, Full_Y, Full_Z), method='linear',rescale=True)
Full_PX = interpolate.griddata((mA_X.ravel(), mA_Y.ravel(), mA_Z.ravel()),mA_PX.ravel(),(Full_X, Full_Y, Full_Z), method='nearest',rescale=True)
return Full_PX
def Calculate_PY():
Full_PY = interpolate.griddata((mA_X.ravel(), mA_Y.ravel(), mA_Z.ravel()),mA_PY.ravel(),(Full_X, Full_Y, Full_Z), method='linear',rescale=True)
Full_PY = interpolate.griddata((mA_X.ravel(), mA_Y.ravel(), mA_Z.ravel()),mA_PY.ravel(),(Full_X, Full_Y, Full_Z), method='nearest',rescale=True)
return Full_PY
def Calculate_PZ():
Full_PZ = interpolate.griddata((mA_X.ravel(), mA_Y.ravel(), mA_Z.ravel()),mA_PZ.ravel(),(Full_X, Full_Y, Full_Z), method='linear',rescale=True)
Expand Down

0 comments on commit faa8a2a

Please sign in to comment.