From eb0a8fdaf1ddc948b038ec1b9c71e0360cd3c308 Mon Sep 17 00:00:00 2001 From: jmbeckers Date: Thu, 7 Dec 2023 14:40:41 +0100 Subject: [PATCH] Update DIVAnd_conditionner.jl --- src/DIVAnd_conditionner.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DIVAnd_conditionner.jl b/src/DIVAnd_conditionner.jl index 13f8ed8..a2fcf51 100644 --- a/src/DIVAnd_conditionner.jl +++ b/src/DIVAnd_conditionner.jl @@ -153,6 +153,7 @@ function DIVAndFFTpcg(mask,pmn,xyi,xy,f,len,epsilon2;moddim=zeros(Int32,ndims(ma if super<0 super=2*Int(ceil(1.2^ndims(pmn[1])*prod(size(pmn[1])./Lpmnmean))) end + super=min(super,size(f,1)) @show super # TODO, use proper weighting if epsilon2 is not constant newx,newval,sumw,varp,idx=DIVAnd_superobs(xy,f,super)