casa
$Rev:20696$
|
Class for parsing a file which holds initial estimates for 1-D components. Used by ImageProfileFitter. More...
#include <ProfileFitterEstimatesFileParser.h>
Public Member Functions | |
ProfileFitterEstimatesFileParser (const String &filename) | |
Constructor filename Name of file containing estimates image Image for which the estimates apply. | |
~ProfileFitterEstimatesFileParser () | |
SpectralList | getEstimates () const |
Get the estimates specified in the file as a ComponentList object. | |
vector< String > | getFixed () const |
Get the fixed parameter masks specified in the file. | |
String | getContents () const |
Get the contents of the file. | |
Private Member Functions | |
void | _parseFile (const RegularFile &myFile) |
parse the file | |
void | _createSpectralList () |
Private Attributes | |
SpectralList | _spectralList |
vector< String > | _fixedValues |
LogIO | _log |
vector< Double > | _peakValues |
vector< Double > | _centerValues |
vector< Double > | _fwhmValues |
String | _contents |
Static Private Attributes | |
static const String | _class |
Class for parsing a file which holds initial estimates for 1-D components. Used by ImageProfileFitter.
Public interface
Used for reading files containing initial estimates of models for 1-D fitting. The expected format is:
If the specified file passed to the constructor does not exist, an exception is thrown. Parsing is done during object construction and an exception is thrown if the file does not have the expected format.
ProfileFitterEstimatesFilebFileReader reader("myEstimates.txt", myImage);
SpectralList sl = reader.getEstimates();
vector<String> fixed = reader.getFixed();
Definition at line 80 of file ProfileFitterEstimatesFileParser.h.
casa::ProfileFitterEstimatesFileParser::ProfileFitterEstimatesFileParser | ( | const String & | filename | ) | [explicit] |
Constructor filename
Name of file containing estimates image
Image for which the estimates apply.
void casa::ProfileFitterEstimatesFileParser::_createSpectralList | ( | ) | [private] |
void casa::ProfileFitterEstimatesFileParser::_parseFile | ( | const RegularFile & | myFile | ) | [private] |
parse the file
Get the contents of the file.
Get the estimates specified in the file as a ComponentList object.
vector<String> casa::ProfileFitterEstimatesFileParser::getFixed | ( | ) | const |
Get the fixed parameter masks specified in the file.
vector<Double> casa::ProfileFitterEstimatesFileParser::_centerValues [private] |
Definition at line 106 of file ProfileFitterEstimatesFileParser.h.
const String casa::ProfileFitterEstimatesFileParser::_class [static, private] |
Definition at line 102 of file ProfileFitterEstimatesFileParser.h.
Definition at line 107 of file ProfileFitterEstimatesFileParser.h.
vector<String> casa::ProfileFitterEstimatesFileParser::_fixedValues [private] |
Definition at line 104 of file ProfileFitterEstimatesFileParser.h.
vector<Double> casa::ProfileFitterEstimatesFileParser::_fwhmValues [private] |
Definition at line 106 of file ProfileFitterEstimatesFileParser.h.
Definition at line 105 of file ProfileFitterEstimatesFileParser.h.
vector<Double> casa::ProfileFitterEstimatesFileParser::_peakValues [private] |
Definition at line 106 of file ProfileFitterEstimatesFileParser.h.
Definition at line 103 of file ProfileFitterEstimatesFileParser.h.