111 m_message =
"CTYPE1 "+ctype1+
") and CTYPE2 ("+ctype2+
") header keywords"
112 " are not compatible. " + message;
171 m_message =
"Invalid World Coordinate System code ("+wcs+
"). " + message;
185 std::string coordsys)
189 m_message =
"Invalid WCS coordinate system ("+coordsys+
"). "
190 "Should be one of CEL/GAL/ECL/HEL/SGL.";
208 m_message =
"No projection function declared. " + message;
227 "Should be one of 1,2,4,8,16,32,64,128,256,512,1024,2048,"
242 std::string ordering)
246 m_message =
"Invalid pixel ordering ("+ordering+
"). "
247 "Should be either 'RING' or 'NESTED'.";
263 const std::vector<double>& mat)
267 m_message =
"Singular matrix encountered: mat=[";
268 for (
int i = 0, ij = 0; i < naxis; ++i) {
273 for (
int j = 0; j < naxis; ++j, ++ij) {
277 if (ij < mat.size()) {
304 m_message =
"Invalid WCS parameter encountered.";
305 if (message.length() > 0)
327 if (message.length() > 0)
349 if (message.length() > 0)
skymap_bad_ctype(std::string origin, std::string ctype1, std::string ctype2, std::string message="")
Incompatible ctype keywords.
wcs_invalid_x_y(std::string origin, int num, std::string message="")
Invalid (x,y) coordinate(s)
wcs_bad_coords(std::string origin, std::string coordsys)
Coordinate system invalid.
skymap_bad_size(std::string origin, int size, int expected, std::string message="")
Incompatible data size.
wcs_no_proj_fct(std::string origin, std::string message="")
No projection function declared.
wcs_invalid_parameter(std::string origin, std::string message="")
Invalid WCS parameter.
wcs_invalid_phi_theta(std::string origin, int num, std::string message="")
Invalid (phi,theta) coordinate(s)
skymap(std::string origin, std::string message="")
General GSkyMap error.
wcs_hpx_bad_ordering(std::string origin, std::string ordering)
Healpix pixel ordering invalid.
wcs_invalid(std::string origin, std::string wcs, std::string message="")
Invalid WCS code.
wcs_singular_matrix(std::string origin, int naxis, const std::vector< double > &mat)
Singular matrix encountered.
skymap_bad_image_dim(std::string origin, int naxis, std::string message="")
Bad image dimension.
wcs_hpx_bad_nside(std::string origin, int nside)
Healpix resolution invalid.
wcs(std::string origin, std::string message="")
General GWcs error.
Exception handler interface definition.
skymap_bad_par(std::string origin, int par, std::string message="")
Bad sky map parameter.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.