From faa8a2a576a70a74a9ec4ba23857686987e92419 Mon Sep 17 00:00:00 2001 From: piotrt75 Date: Wed, 7 Mar 2018 11:57:15 +0000 Subject: [PATCH] Changed CDF to default values (Gaussian smoothing - off) --- Converters_Scaled_Units/CDF/CDF_NLIST.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Converters_Scaled_Units/CDF/CDF_NLIST.py b/Converters_Scaled_Units/CDF/CDF_NLIST.py index ace9853..21d0785 100644 --- a/Converters_Scaled_Units/CDF/CDF_NLIST.py +++ b/Converters_Scaled_Units/CDF/CDF_NLIST.py @@ -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) @@ -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)