Skip to content

Generate unconditional simulations for power variogram model #121

Open
@Martin20494

Description

@Martin20494

I have a question about how to generate unconditional simulations for power variogram model. I have tried as below:

# Calculate original variogram
var <- gstat::variogram(object=z~1, locations=<some_dataset>)
fit_var <- gstat::fit.variogram(object=var, model=gstat::vgm(range=1.8, model="Pow"))

# Generate simulations
z.pred <- gstat::gstat(formula = z ~ 1, locations = ~x + y, dummy = T, beta = 0,  model = gstat::vgm(range=1.8, model='Pow'), nmax = 10)
set.seed(1)
z.usim <- gstat::predict(z.pred, newdata = <new_some_dataset>, nsim = 50)

And I got this error

Error in predict.gstat(z.pred, newdata = newbathy_sdf, nsim = 50) : 
value not allowed for: covariance from non-transitive variogram not allowed

As I understand from the error and from here, covariance modelling and simple kriging cannot produce simulations of power variogram because there is no sill. If this is the case, do you know any other way that I can generate unconditional simulations for power variogram model with gstat?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions