1 #ifndef MHO_MK4StationInterfaceReversed_HH__
2 #define MHO_MK4StationInterfaceReversed_HH__
54 void SetOutputFile(
const std::string& output_file) { fOutputFile = output_file; }
65 void InitializeStationStructure();
66 void GenerateType000();
67 std::string ConstructType000FileName();
69 void GenerateType300();
70 void GenerateType301Records();
71 void GenerateType303Records();
72 void GenerateType309Records();
73 void setstr(
const std::string& str,
char* char_array, std::size_t max_size);
75 double ComputeType309Rot(
double ap_offset, std::string start_time,
double start_time_mjd);
76 double ComputeType309RotFallback(
double ap_offset);
87 void ConvertPhasorToCounts(
const std::complex< double >&
phasor,
double acc_period,
double sample_period,
88 uint32_t& real_count, uint32_t& imag_count);
93 void ExtractPCalChannelInfo();
94 void ExtractPCalChannelInfoFromVex();
95 double DeterminePCalToneSpacing();
97 double FactorConvertToMHz(std::string units);
98 void DetermineChannelToneIndexes(
double lower_freq,
double upper_freq, std::size_t& start_idx, std::size_t& ntones);
100 std::string GetStationMode();
105 std::string fOutputDir;
106 std::string fOutputFile;
110 std::string fStationCode;
112 std::string fFreqSetupName;
116 std::size_t fNIntervals;
117 std::size_t fNCoeffs;
123 struct PCalChannelInfo
125 std::string channel_name;
126 std::string polarization;
127 std::string net_sideband;
130 int accumulator_start_index;
133 double sample_period;
141 virtual ~chan_predicate(){};
143 virtual bool operator()(
const PCalChannelInfo& a,
const PCalChannelInfo& b)
145 if(a.sky_freq == b.sky_freq)
147 return a.polarization < b.polarization;
149 return a.sky_freq < b.sky_freq;
153 std::vector< PCalChannelInfo > fPCalChannelList;
155 std::vector< void* > fAllocated;
MHO_MK4StationInterfaceReversed - Converts HOPS4 station containers back to mk4_sdata format....
Definition: MHO_MK4StationInterfaceReversed.hh:39
MHO_MK4StationInterfaceReversed()
Definition: MHO_MK4StationInterfaceReversed.cc:47
void SetStationCoordData(station_coord_type *coord_data)
Definition: MHO_MK4StationInterfaceReversed.hh:50
void FreeAllocated()
Definition: MHO_MK4StationInterfaceReversed.cc:70
void SetPCalData(multitone_pcal_type *pcal_data)
Definition: MHO_MK4StationInterfaceReversed.hh:52
void SetVexData(const mho_json &vex_data)
Definition: MHO_MK4StationInterfaceReversed.hh:46
void SetOutputDirectory(const std::string &output_dir)
Definition: MHO_MK4StationInterfaceReversed.cc:80
virtual ~MHO_MK4StationInterfaceReversed()
Definition: MHO_MK4StationInterfaceReversed.cc:59
void GenerateStationStructure()
Definition: MHO_MK4StationInterfaceReversed.cc:85
int WriteStationFile()
Definition: MHO_MK4StationInterfaceReversed.cc:706
void SetOutputFile(const std::string &output_file)
Definition: MHO_MK4StationInterfaceReversed.hh:54
struct mk4_sdata * GetStationStructure()
Definition: MHO_MK4StationInterfaceReversed.hh:60
Class MHO_TableContainer.
Definition: MHO_TableContainer.hh:36
Definition: mk4_data.h:108
Definition: MHO_AdhocFlagging.hh:18
Definition: type_212.h:10