Elaboradar  0.1
 Tutto Classi Namespace File Funzioni Variabili Tipi enumerati (enum) Gruppi
template<typename T >
void radarelab::algo::azimuthresample::LevelwiseResampler< T >::resample_volume ( const Volume< T > &  src,
Volume< T > &  dst,
double  src_beam_width 
) const
inline

Merge.

Fill dst with data from src, coping with the two volumes having a different number of beams per scan.

Merger is the function used to merge beams from src into dst. It takes the source PolarScan, the destination PolarScan and a vector with the indices of the beams of src that need to be used.

Definizione alla linea 72 del file azimuth_resample.h.

Referenzia radarelab::Volume< T >::append_scan(), radarelab::PolarScanBase::beam_size, radarelab::PolarScanBase::cell_size, radarelab::PolarScanBase::elevation, radarelab::volume::Scans< T >::load_info, radarelab::volume::Scans< T >::quantity, radarelab::volume::Scans< T >::radarSite, radarelab::algo::azimuthresample::LevelwiseResampler< T >::resample_polarscan(), radarelab::volume::Scans< T >::scan(), e radarelab::volume::Scans< T >::units.

73  {
74  // Copy volume metadata
75  dst.quantity = src.quantity;
76  dst.units = src.units;
77  dst.load_info = src.load_info;
78  dst.radarSite=src.radarSite;
79 
80  for (unsigned iel = 0; iel < src.size(); ++iel)
81  {
82  const PolarScan<T>& src_scan = src.scan(iel);
83  PolarScan<T>& dst_scan = dst.append_scan(src_scan.beam_size, src_scan.elevation, src_scan.cell_size);
84  resample_polarscan(src_scan, dst_scan, src_beam_width);
85  }
86  }
virtual void resample_polarscan(const PolarScan< T > &src, PolarScan< T > &dst, double src_beam_width) const =0
Fill dst with data from src, using the given merger function.