62 if (wcs != NULL && wcs->
code() ==
"MER") {
65 double crval1 = wcs->
crval(0);
66 double crval2 = wcs->
crval(1);
67 double crpix1 = wcs->
crpix(0);
68 double crpix2 = wcs->
crpix(1);
69 double cdelt1 = wcs->
cdelt(0);
70 double cdelt2 = wcs->
cdelt(1);
71 int naxis1 = map.
nx();
72 int naxis2 = map.
ny();
75 double adjust1 = (double(naxis1) + 1.0) / 2.0 - crpix1;
76 double adjust2 = (double(naxis2) + 1.0) / 2.0 - crpix2;
116 return (energy - e2);
133 double e2 = energy / (one_minus_cos * energy /
gammalib::mec2 + 1.0);
154 static const double exd2x[] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
155 0.0, 0.0, 0.0, -51.7, 0.0, 9.0, -34.7};
176 static const double exd2y[] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
177 0.0, 0.0, 0.0, 8.7, 0.0, +41.2, +49.0};
198 static const double exd2r[] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
199 0.0, 0.0, 0.0, 9.0, 0.0, 9.0, 9.0};
const int & ny(void) const
Returns number of pixels in y coordinate.
const GSkyProjection * projection(void) const
Returns pointer to sky projection.
GVector cos(const GVector &vector)
Computes cosine of vector elements.
double com_energy2(const double &energy, const double &phigeo)
Return D2 energy deposit.
double crval(const int &inx) const
Return value of reference pixel.
Sky map class definition.
const double & com_exd2r(const int &id2)
Return D2 module exclusion region radius.
virtual std::string code(void) const =0
Implementation of support function used by COMPTEL classes.
double crpix(const int &inx) const
Return reference pixel.
const double & com_exd2y(const int &id2)
Return D2 module exclusion region Y position.
void com_wcs_mer2car(GSkyMap &map)
Changes Mercator's projection to cartesian projection.
double cdelt(const int &inx) const
Return pixel size.
const double & com_exd2x(const int &id2)
Return D2 module exclusion region X position.
Plate carree (CAR) projection class definition.
virtual std::string coordsys(void) const
Returns coordinate system.
Plate carree (CAR) projection class definition.
Abstract world coordinate system base class.
const int & nx(void) const
Returns number of pixels in x coordinate.
double com_energy1(const double &energy, const double &phigeo)
Return D1 energy deposit.
Abstract world coordinate system base class definition.