1 #ifndef MHO_MK4StationInterfaceReversed_HH__
2 #define MHO_MK4StationInterfaceReversed_HH__
51 void SetOutputFile(
const std::string& output_file) { fOutputFile = output_file; }
63 void InitializeStationStructure();
64 void GenerateType000();
65 std::string ConstructType000FileName();
67 void GenerateType300();
68 void GenerateType301Records();
69 void GenerateType303Records();
70 void GenerateType309Records();
71 void setstr(
const std::string& str,
char* char_array, std::size_t max_size);
73 double ComputeType309Rot(
double ap_offset, std::string start_time,
double start_time_mjd);
74 double ComputeType309RotFallback(
double ap_offset);
85 void ConvertPhasorToCounts(
const std::complex<double>&
phasor,
double acc_period,
86 double sample_period, uint32_t& real_count, uint32_t& imag_count);
91 void ExtractPCalChannelInfo();
92 void ExtractPCalChannelInfoFromVex();
93 double DeterminePCalToneSpacing();
95 double FactorConvertToMHz(std::string units);
96 void DetermineChannelToneIndexes(
double lower_freq,
double upper_freq, std::size_t& start_idx, std::size_t& ntones);
98 std::string GetStationMode();
103 std::string fOutputDir;
104 std::string fOutputFile;
108 std::string fStationCode;
110 std::string fFreqSetupName;
114 std::size_t fNIntervals;
115 std::size_t fNCoeffs;
121 struct PCalChannelInfo
123 std::string channel_name;
124 std::string polarization;
125 std::string net_sideband;
128 int accumulator_start_index;
131 double sample_period;
139 virtual ~chan_predicate(){};
141 virtual bool operator()(
const PCalChannelInfo& a,
const PCalChannelInfo& b)
143 if(a.sky_freq == b.sky_freq){
return a.polarization < b.polarization;}
144 return a.sky_freq < b.sky_freq;
151 std::vector<PCalChannelInfo> fPCalChannelList;
153 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:49
void SetStationCoordData(station_coord_type *coord_data)
Definition: MHO_MK4StationInterfaceReversed.hh:49
void FreeAllocated()
Definition: MHO_MK4StationInterfaceReversed.cc:78
void SetPCalData(multitone_pcal_type *pcal_data)
Definition: MHO_MK4StationInterfaceReversed.hh:50
void SetVexData(const mho_json &vex_data)
Definition: MHO_MK4StationInterfaceReversed.hh:46
void SetOutputDirectory(const std::string &output_dir)
Definition: MHO_MK4StationInterfaceReversed.cc:89
virtual ~MHO_MK4StationInterfaceReversed()
Definition: MHO_MK4StationInterfaceReversed.cc:65
void GenerateStationStructure()
Definition: MHO_MK4StationInterfaceReversed.cc:95
int WriteStationFile()
Definition: MHO_MK4StationInterfaceReversed.cc:688
void SetOutputFile(const std::string &output_file)
Definition: MHO_MK4StationInterfaceReversed.hh:51
struct mk4_sdata * GetStationStructure()
Definition: MHO_MK4StationInterfaceReversed.hh:57
Class MHO_TableContainer.
Definition: MHO_TableContainer.hh:36
Definition: mk4_data.h:108
Definition: MHO_ChannelLabeler.hh:17
Definition: type_212.h:10