data_closure_phase Class Reference

Defines a class containing a collection of closure phases datum objects with simple I/O. More...

#include "data/data_closure_phase.h"

Public Member Functions

 data_closure_phase ()
 Defines a default, empty data_closure_phase object.
 
 data_closure_phase (std::string file_name, const std::string time_type="HH", bool themis_convention=true)
 
 data_closure_phase (std::vector< std::string > file_name, const std::vector< std::string > time_type=std::vector< std::string >(), std::vector< bool > themis_convention=std::vector< bool >())
 
void add_data (std::string file_name, const std::string time_type="HH", bool themis_convention=true)
 Adds data from the file <file_name>.
 
void add_data (datum_closure_phase &d)
 Adds data from a datum object.
 
size_t size () const
 Returns the number of data points.
 
datum_closure_phasedatum (size_t i) const
 Provides access to the atomic datum element.
 

Private Attributes

std::vector< datum_closure_phase * > _closure_phases
 

Detailed Description

Collections of closure phase data are defined in data_closure_phase, which includes simple I/O tools and provides access to a list of appropriately constructed datum_closure_phase objects.

Warning
Currently assumes a fixed data file format.
Todo:
Once data file formats crystalize, implement more generic or multi-format I/O options.

Constructor & Destructor Documentation

data_closure_phase ( std::string  file_name,
const std::string  time_type = "HH",
bool  themis_convention = true 
)

Defines a default, data_closure_phase filled by data in file <file_name>. time_type specifies the format of the time field in the importated data. Currently two formats are implemented:

  • HHMM e.g. 1230
  • HH e.g. 12.5 themis convention defines the sign convention used for the Fourier transforms.
  • true uses exp(-2 i pi ...)
  • false uses exp(+2 i pi ...)

Here is the call graph for this function:

data_closure_phase ( std::vector< std::string >  file_name,
const std::vector< std::string >  time_type = std::vector<std::string> (),
std::vector< bool >  themis_convention = std::vector<bool> () 
)

Defines a default, data_closure_phase filled by data in the collection of files in the vector <file_name>. time_type specifies the format of the time field in the importated data. Currently two formats are implemented:

  • HHMM e.g. 1230
  • HH e.g. 12.5 If no time_type is specified it assumes all the data files are using "HH". themis_convention defines the sign convention used for the Fourier tranforms.
  • True (Themis convention) uses exp(-2 i pi ...)
  • False (EHT convention) uses exp(+2 i pi ...)

Here is the call graph for this function:


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