Hey!
I hope you guys do well!
I have a question: Is SGS or FFTGS working in 3D? I would need conditional as well as unconditional.
I tried to construct a 3D grid with ‘CartesianGrid’ and fed it into a Simulation problem - that worked but when I tried to run SGS or FFTGS I am getting an error:
Can you maybe point me at a working example?
Thanks a lot!
Markus
using GeoStats
# random fault as a Segment
function randomfault()
A = rand(Point2)
B = rand(Point2)
Segment(A, B)
end
# midpoint of a fault
function midpoint(fault)
A = coordinates(fault(0))
B = coordinates(fault(1))
Point((A + B) / 2)
end
# normal direction to a fault
function normal(fault)
A = fault(0)
B = fault(1)
d = B - A
# 90 degree rotation
Vec(d[2], -d[1])
end
# simulate 10 random faults
faults = [randomfault() for i in 1:10]
# define bisectors (partition methods)
points = [midpoint(fault) for fault in faults]
normals = [normal(fault) for fault in faults]
pairs = zip(normals, points)
bisectors = [BisectPointPartition(normal, point) for (normal, point) in pairs]
# the product of bisectors creates compartments
compartments = reduce(*, bisectors)
# random data for Kriging
obs = georef((Z=rand(100),), rand(2,100))
# partition data to use in different Kriging calls
partition(obs, compartments)
domain(obs)
if necessary. The result of the partition is a collection of views as explained in the docs and you can use these views to defined various subproblems to solve with Kriging for example. You can also get the indices(p)
of the partition to construct views of obs
and domain(obs
that are consistent. Let me know if you have questions.
s1, s2, ..., sk
as Point
and a new location where you want to perform estimation s0
. You can create segments si = Segment(si, s0)
and check if they intersect with any fault segment using qi = si ∩ fault
. You can then check if isnothing(qi)
and include the point in the list of valid points for that location s0
. After you have a list of points of interest, you can create the kriging estimator object just for the subset: https://juliaearth.github.io/GeoStats.jl/stable/kriging.html
neighborhood=Ellipsoid(...)
for example: https://juliaearth.github.io/GeoStats.jl/stable/solvers/builtin.html#GeoEstimation.Kriging
Shift+?
to learn about all keyboard shortcuts. They are very useful and may help you understand the Zulip chat model as well. Thank you for being part of this community :heart: