Skip to content

Commit

Permalink
fixed retrending
Browse files Browse the repository at this point in the history
  • Loading branch information
gantolini committed Jan 10, 2024
1 parent 3f47249 commit 9a094c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DATA/SETTINGS/parameters.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tmin_lapserate=-0.001, -0.003, -0.004, -0.005, -0.005, -0.005, -0.005, -0.005, -
[elaboration]
anomaly_pts_max_delta_z=50
anomaly_pts_max_distance=20000
grid_min_coverage=10
grid_min_coverage=0
merge_joint_stations=true

[interpolation]
Expand Down
4 changes: 2 additions & 2 deletions agrolib/interpolation/interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ bool setFittingParameters(Crit3DProxyCombination myCombination, Crit3DInterpolat
const double RATIO_DELTA = 1000;

for (unsigned i=0; i<myCombination.getIsActive().size(); i++)
if (myCombination.getValue(i))
if (mySettings->getProxy(i)->getIsSignificant())
{
if (getProxyPragaName(mySettings->getProxy(i)->getName()) == height)
myFunc.push_back(lapseRatePiecewise);
Expand Down Expand Up @@ -1742,7 +1742,7 @@ bool getActiveProxyValues(Crit3DInterpolationSettings *mySettings, const std::ve
isComplete = false;
}

return isComplete;
return (activeProxyValues.size() > 0 && isComplete);
}


Expand Down

0 comments on commit 9a094c9

Please sign in to comment.