Skip to content
Snippets Groups Projects
Commit e8fa6717 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

bug fixed in filtering by azel

parent c31b219d
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!17Resolve "TDCP batch implementation"
......@@ -311,13 +311,12 @@ std::set<int> Observations::filterByElevationSnr(const Azels& azels,
{
std::set<int> remove_sats;
//for (int obs_i = 0; obs_i < obs_.size(); obs_i++)
for (auto& azel_pair : azels)
for (auto&& sat_idx_pair : sat_2_idx_)
{
const int& sat_number = azel_pair.first;
const double& elevation(azel_pair.second(1));
assert(hasSatellite(sat_number));
auto&& obs_sat = getObservationBySat(sat_number);
const int& sat_number = sat_idx_pair.first;
assert(azels.count(sat_number) && "azel missing for a satellite of this observation");
const double& elevation(azels.at(sat_number)(1));
auto&& obs_sat = getObservationByIdx(sat_idx_pair.second);
// check elevation
if (elevation < elmin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment