Elaboradar  0.1

◆ AzimuthIndex()

radarelab::algo::azimuthresample::AzimuthIndex::AzimuthIndex ( const Eigen::VectorXd &  azimuths)

Build an index with the azimuths of a PolarScan.

Parametri
[in]-azimuths

Definizione alla linea 30 del file azimuth_resample.cpp.

31 {
32  for (unsigned i = 0; i < azimuths.size(); ++i)
33  {
34  by_angle.insert(make_pair(azimuths(i), i));
35  /*
36  map<double, unsigned>::iterator old;
37  bool inserted;
38  tie(old, inserted) = by_angle.insert(make_pair(azimuths(i), i));
39  if (!inserted)
40  {
41  fprintf(stderr, "IDX new %u old %u, val %f\n", i, old->second, old->first);
42  throw std::runtime_error("source PolarScan has two beams with the same azimuth");
43  }
44  */
45  }
46 }
std::map< double, unsigned > by_angle
map azimuth angles to beam indices