casa
5.7.0-16
|
#include <BLParameterParser.h>
Public Member Functions | |
BLTableParser (string const file_name) | |
~BLTableParser () | |
bool | GetFitParameterIdx (double const time, double const interval, size_t const scanid, size_t const beamid, size_t const antid, size_t const spwid, size_t &idx) |
void | GetFitParameterByIdx (size_t const idx, size_t const ipol, bool &apply, std::vector< float > &coeff, std::vector< double > &boundary, BLParameterSet &bl_param) |
Public Member Functions inherited from casa::BLParameterParser | |
BLParameterParser (string const file_name) | |
~BLParameterParser () | |
bool | GetFitParameter (size_t const rowid, size_t const polid, BLParameterSet &bl_param) |
Returns false if there is no fitting parameters for the row and pol. More... | |
string | get_file_name () |
Returns the name of file that stores. More... | |
std::vector< size_t > | get_function_types () |
Returns a list of baseline type in the file. More... | |
uint16_t | get_max_order (size_t const bltype) |
Returns the maximum fit order of specified baseline type to construct BaselineContext. More... | |
Private Member Functions | |
void | initialize () |
void | parse () |
uint16_t | GetTypeOrder (size_t const &baseline_type, casacore::uInt const irow, casacore::uInt const ipol) |
Returns order or npiece in BLParameterSet structure depending on datatype. More... | |
Private Attributes | |
BaselineTable * | bt_ |
std::map< string, std::vector < double > > | sortedTimes_ |
std::map< string, std::vector < casacore::uInt > > | timeSortedIdx_ |
std::map< string, size_t > | numRows_ |
Additional Inherited Members | |
Protected Types inherited from casa::BLParameterParser | |
enum | BLParameters { BLParameters_kRow, BLParameters_kPol, BLParameters_kMask, BLParameters_kNumIteration, BLParameters_kClipThreshold, BLParameters_kLineFinder, BLParameters_kLFThreshold, BLParameters_kLeftEdge, BLParameters_kRightEdge, BLParameters_kChanAverageLim, BLParameters_kBaselineType, BLParameters_kOrder, BLParameters_kNPiece, BLParameters_kNWave, BLParameters_kNumElements } |
The enum for columns in fitting parameter file. More... | |
Protected Member Functions inherited from casa::BLParameterParser | |
void | initialize () |
private: More... | |
void | Clearup () |
void | parse (string const file_name) |
parse a file More... | |
void | SplitLine (string const &linestr, char const separator, std::vector< string > &strvec) |
split string by separator character More... | |
void | ConvertLineToParam (string const &linestr, size_t &rowid, size_t &polid, BLParameterSet ¶mset) |
convert a line of string to a BLParameterSet data structure More... | |
uint16_t | GetTypeOrder (BLParameterSet const &bl_param) |
Returns order or npiece in BLParameterSet structure depending on datatype. More... | |
template<typename DataType > | |
DataType | ConvertString (string const &svalue) |
Protected Attributes inherited from casa::BLParameterParser | |
string | blparam_file_ |
Member variables. More... | |
std::map< const std::pair < size_t, size_t > , BLParameterSet * > | bl_parameters_ |
std::vector< size_t > | baseline_types_ |
uint16_t | max_orders_ [BaselineType_kNumElements] |
Definition at line 182 of file BLParameterParser.h.
|
explicit |
casa::BLTableParser::~BLTableParser | ( | ) |
void casa::BLTableParser::GetFitParameterByIdx | ( | size_t const | idx, |
size_t const | ipol, | ||
bool & | apply, | ||
std::vector< float > & | coeff, | ||
std::vector< double > & | boundary, | ||
BLParameterSet & | bl_param | ||
) |
bool casa::BLTableParser::GetFitParameterIdx | ( | double const | time, |
double const | interval, | ||
size_t const | scanid, | ||
size_t const | beamid, | ||
size_t const | antid, | ||
size_t const | spwid, | ||
size_t & | idx | ||
) |
|
private |
Returns order or npiece in BLParameterSet structure depending on datatype.
|
private |
|
private |
|
private |
Definition at line 199 of file BLParameterParser.h.
|
private |
Definition at line 202 of file BLParameterParser.h.
|
private |
Definition at line 200 of file BLParameterParser.h.
|
private |
Definition at line 201 of file BLParameterParser.h.