From 5a038ca3d3f102e4c0202aa8f55c803aa7c90c7e Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Mon, 13 Mar 2017 13:55:11 +0000 Subject: [PATCH] Removed '+1' when creating set of bins for volumetric water fraction values. --- gprMax/materials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/materials.py b/gprMax/materials.py index 3436c4f5..9fa09f12 100644 --- a/gprMax/materials.py +++ b/gprMax/materials.py @@ -261,7 +261,7 @@ class PeplinskiSoil(object): # sigf2 = -1.645 + 1.939 * self.rb - 2.25622 * self.S + 1.594 * self.C # Generate a set of bins based on the given volumetric water fraction values - mubins = np.linspace(self.mu[0], self.mu[1], nbins + 1) + mubins = np.linspace(self.mu[0], self.mu[1], nbins) # Generate a range of volumetric water fraction values the mid-point of each bin to make materials from mumaterials = mubins + (mubins[1] - mubins[0]) / 2