Skip to content

Commit

Permalink
More fixes to transioplane.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Oct 30, 2024
1 parent 367fabe commit accde2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/empirical/transiogram.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function EmpiricalTransiogram(partition::Partition, var; kwargs...)
# retain geospatial data with at least two elements
filtered = Iterators.filter(d -> nelements(domain(d)) > 1, partition)
@assert !isempty(filtered) "invalid partition of geospatial data"
γ(d) = EmpiricalTransiogram(d, var; kwargs...)
tmapreduce(γ, merge, collect(filtered))
t(d) = EmpiricalTransiogram(d, var; kwargs...)
tmapreduce(t, merge, collect(filtered))
end

"""
Expand Down
4 changes: 2 additions & 2 deletions src/empirical/transioplane.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function EmpiricalTransioplane(
data::AbstractGeoTable,
var;
normal=Vec(0, 0, 1),
nangs=50,
nangs=100,
ptol=0.5u"m",
dtol=0.5u"m",
kwargs...
Expand Down Expand Up @@ -57,7 +57,7 @@ function EmpiricalTransioplane(
# estimate directional transiograms across planes
ts = map(θs) do θ
dir = DirectionPartition(cos(θ) * u + sin(θ) * v, tol=dtol)
t(plane) = EmpiricalVariogram(partition(rng, plane, dir), var₁, var₂; kwargs...)
t(plane) = EmpiricalTransiogram(partition(rng, plane, dir), :c; kwargs...)
tmapreduce(t, merge, planes)
end

Expand Down

0 comments on commit accde2b

Please sign in to comment.