Defines a class containing a collection of visibility amplitude datum objects with simple I/O. More...
#include "data/data_visibility_amplitude.h"
Public Member Functions | |
data_visibility_amplitude () | |
Defines a default, empty data_visibility_amplitude object. | |
data_visibility_amplitude (std::string file_name, const std::string time_type="HHMM", bool read_frequency=false) | |
data_visibility_amplitude (std::vector< std::string > file_name, const std::vector< std::string > time_type=std::vector< std::string >()) | |
void | add_data (std::string file_name, const std::string time_type="HHMM", bool read_frequency=false) |
Adds data from the file <file_name>. | |
void | add_data (datum_visibility_amplitude &d) |
Adds data from a datum object. | |
size_t | size () const |
Returns the number of data points. | |
datum_visibility_amplitude & | datum (size_t i) const |
Provides access to the atomic datum element. | |
Private Attributes | |
std::vector< datum_visibility_amplitude * > | _visibilities |
Detailed Description
Collections of visibility amplitude data are defined in data_visibility_amplitude, which includes simple I/O tools and provides access to a list of appropriately constructed datum_visibility_amplitude 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_visibility_amplitude | ( | std::string | file_name, |
const std::string | time_type = "HHMM" , |
||
bool | read_frequency = false |
||
) |
Defines a default, data_visibility_amplitude 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
data_visibility_amplitude | ( | std::vector< std::string > | file_name, |
const std::vector< std::string > | time_type = std::vector<std::string> () |
||
) |
Defines a default, data_visibility_amplitude 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 "HHMM".
The documentation for this class was generated from the following files: