Skip to content

Commit

Permalink
fix bug in multiple detrending
Browse files Browse the repository at this point in the history
  • Loading branch information
cate-to committed Sep 3, 2024
1 parent 5699698 commit fd45731
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion agrolib/interpolation/interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,14 @@ bool getMultipleDetrendingValues(Crit3DInterpolationSettings mySettings, const s
if (getProxyPragaName(mySettings.getProxy(i)->getName()) == proxyHeight && myCombination.isProxyActive(i) && myCombination.isProxySignificant(i))
{
elevationPos = i;
activeProxyValues.push_back(allProxyValues[i]);

if (allProxyValues[i] == NODATA)
{
myFunc.erase(myFunc.begin());
myParameters.erase(myParameters.begin());
}
else
activeProxyValues.push_back(allProxyValues[i]);
}
}

Expand Down

0 comments on commit fd45731

Please sign in to comment.