Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ReMpy into main
  • Loading branch information
aadm committed Mar 23, 2021
2 parents 70c97c8 + af1fbaa commit 6c7aaa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GeostatisticsDiscreteDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
plt.show()

# indicator kriging
ikp, ikmap = IndicatorKriging(xcoords, dcoords, fvalues, nf, pprior, l, krigtype)
ikp, ikmap = IndicatorKriging(xcoords, dcoords, fvalues, nf, pprior, float(l), krigtype)


# simulation
Expand Down
6 changes: 5 additions & 1 deletion Geostats.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ def SeqGaussianSimulation(xcoords, dcoords, dvalues, xmean, xvar, l, krigtype, k
pathcoords = nonsimcoords[pathind, :]
simval = np.zeros((npl, 1))

# if the xmean is a single value, transform to an array
if type(xmean) == float:
xmean = xmean*np.ones((n, 1))

# sequential simulation
for i in range(npl):
if dcoords.shape[0] < nmax:
Expand All @@ -396,7 +400,7 @@ def SeqGaussianSimulation(xcoords, dcoords, dvalues, xmean, xvar, l, krigtype, k

# kriging
if krig == 0:
krigmean, krigvar = SimpleKriging(pathcoords[i,:], dc, dz, xmean, xvar, l, krigtype)
krigmean, krigvar = SimpleKriging(pathcoords[i,:], dc, dz, xmean[pathind[i]], xvar, l, krigtype)
else:
krigmean, krigvar = OrdinaryKriging(pathcoords[i,:], dc, dz, xvar, l, krigtype)

Expand Down

0 comments on commit 6c7aaa5

Please sign in to comment.