![]() |
CARTA Backend
The backend component of CARTA
|
#include <string>
#include <vector>
Functions | |
bool | ParseHistoryBeamHeader (std::string &header, std::string &bmaj, std::string &bmin, std::string &bpa) |
Parses an AIPS-style beam header to extract beam parameters with regular expression. | |
bool ParseHistoryBeamHeader | ( | std::string & | header, |
std::string & | bmaj, | ||
std::string & | bmin, | ||
std::string & | bpa | ||
) |
Parses an AIPS-style beam header to extract beam parameters with regular expression.
[in] | header | A string reference to the history beam header string to be parsed. |
[out] | bmaj | A string reference to the extracted major axis value with its unit. |
[out] | bmin | A string reference to the extracted minor axis value with its unit. |
[out] | bpa | A string reference to the extracted position angle value with its unit. |
true
if the header was successfully parsed and values were extracted, otherwise false
.This function uses regular expressions to extract the major axis (BMAJ), minor axis (BMIN), and position angle (BPA) from an AIPS-style history beam header string. It handles two common formats: one using "Beam =" notation and another using "BMAJ=", "BMIN=", and "BPA=" notation.
false
.