File: baselinetimeplaneimager.h

package info (click to toggle)
aoflagger 3.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,004 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (28 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef BASELINETIMEPLANEIMAGER_H
#define BASELINETIMEPLANEIMAGER_H

#include <complex>

#include "../structures/image2d.h"

namespace algorithms {

template <typename NumType>
class BaselineTimePlaneImager {
 public:
  void Image(NumType uTimesLambda, NumType vTimesLambda, NumType wTimesLambda,
             NumType lowestFrequency, NumType frequencyStep,
             size_t channelCount, const std::complex<NumType>* data,
             Image2D& output);

 private:
  template <typename T>
  static T frequencyToWavelength(const T frequency) {
    return speedOfLight() / frequency;
  }
  static long double speedOfLight() { return 299792458.0L; }
};

}  // namespace algorithms

#endif