![]() |
CARTA Backend
The backend component of CARTA
|
#include "FitsUtil.h"
#include <spdlog/spdlog.h>
#include <iomanip>
#include <regex>
#include <sstream>
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.
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
.