From accde2b2f38f5081026f485790fa062d069ba793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Hoffimann?= Date: Wed, 30 Oct 2024 08:22:17 -0300 Subject: [PATCH] More fixes to transioplane.jl --- src/empirical/transiogram.jl | 4 ++-- src/empirical/transioplane.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/empirical/transiogram.jl b/src/empirical/transiogram.jl index a6cd763..e926d10 100644 --- a/src/empirical/transiogram.jl +++ b/src/empirical/transiogram.jl @@ -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 """ diff --git a/src/empirical/transioplane.jl b/src/empirical/transioplane.jl index 233ee6c..302fd65 100644 --- a/src/empirical/transioplane.jl +++ b/src/empirical/transioplane.jl @@ -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... @@ -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