Skip to content

Commit 1cb1346

Browse files
committed
homogeneity and statistics widget joint stations
1 parent f8c7826 commit 1cb1346

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/pointStatisticsWidget/pointStatisticsWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Crit3DPointStatisticsWidget::Crit3DPointStatisticsWidget(bool isGrid, Crit3DMete
7070
std::string jointId = jointStationsList[j].toStdString();
7171
int jointIndex = getJointStationIndex(jointId);
7272
if (jointIndex == NODATA)
73-
break;
73+
break; //CT continue would be better?
7474

7575
_idPointList << jointId;
7676
_jointIndexList << jointIndex;

src/pragaProject/pragaProject.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,6 +3617,14 @@ void PragaProject::showPointStatisticsWidgetPoint(std::string idMeteoPoint)
36173617
}
36183618
}
36193619
}
3620+
3621+
//add joint stations to meteopoint given to the widget
3622+
for (int k = 0; k < jointStationsMp.size(); k++)
3623+
{
3624+
if (meteoPoints[i].id == jointStationsMp[k].toStdString())
3625+
meteoPointsWidgetList.append(meteoPoints[i]);
3626+
}
3627+
36203628
}
36213629

36223630
bool isGrid = false;
@@ -3682,6 +3690,14 @@ void PragaProject::showHomogeneityTestWidgetPoint(std::string idMeteoPoint)
36823690
myDistances.push_back(currentDist);
36833691
myIndeces.push_back(i);
36843692
}
3693+
}
3694+
}
3695+
//add joint stations to meteopoints given to the widget
3696+
for (int k = 0; k < jointStationsList.size(); k++)
3697+
{
3698+
if (meteoPoints[i].id == jointStationsList[k].toStdString())
3699+
{
3700+
nearMeteoPointsList.append(meteoPoints[i]);
36853701
}
36863702
}
36873703
}

0 commit comments

Comments
 (0)