CARMA C++
carma::sdp::AHW_Processor Class Reference

A class to create Astronomical Header files for a single type of integrated monitor data. More...

#include <carma/sdp/AHW_Processor.h>

Public Member Functions

 AHW_Processor (const carma::util::CorrelatorType &corlType, const std::string &inputDir, const std::string &outputDir, const std::string &recycleDir, const std::vector< AHW_Output > &outputs, const carma::monitor::DataflowSubsystem::Correlator *monitor)
 
std::string getCorrelatorType () const
 Get a string representation of the correlator type. More...
 
void reset ()
 Reset the AHW input and output directories. More...
 
unsigned int run_single_iteration (const double elapsedTime, const double lastSleepTime)
 Run a single iteration of the AstroHeaderWriter. More...
 

Detailed Description

A class to create Astronomical Header files for a single type of integrated monitor data.

This class takes its input from monitor point flat files (MPDAT) and converts this input into Astronomical Header (XML) output files.

The Astronomical Header (XML) files are used in conjunction with the visibility data written by the correlator to produce a complete scientific dataset.

Definition at line 68 of file AHW_Processor.h.

Member Function Documentation

std::string carma::sdp::AHW_Processor::getCorrelatorType ( ) const

Get a string representation of the correlator type.

void carma::sdp::AHW_Processor::reset ( )

Reset the AHW input and output directories.

Rename all input files such that they will be re-processed. Move all existing output files into the recycle directory.

unsigned int carma::sdp::AHW_Processor::run_single_iteration ( const double  elapsedTime,
const double  lastSleepTime 
)

Run a single iteration of the AstroHeaderWriter.

A high-level guide to the actions taken:

  • scan input directory
  • scan output directory
  • process all un-processed complete input filesets
  • produce any necessary output files

After calling this, you should sleep for a little while to avoid overloading the filesystem while the system is integrating.


The documentation for this class was generated from the following file: