summaryrefslogtreecommitdiffstats
path: root/tksao/frame/frmap.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/frmap.C')
-rw-r--r--tksao/frame/frmap.C22
1 files changed, 8 insertions, 14 deletions
diff --git a/tksao/frame/frmap.C b/tksao/frame/frmap.C
index c1f5f27..4e8fca5 100644
--- a/tksao/frame/frmap.C
+++ b/tksao/frame/frmap.C
@@ -21,14 +21,11 @@ double Base::mapAngleFromRef(double angle, Coord::CoordSystem sys,
case Coord::AMPLIFIER:
break;
default:
- if (hasWCSCel(sys))
+ Coord::Orientation oo = keyContext->fits->getWCSOrientation(sys, sky);
+ if (oo==Coord::XX)
+ rr = -(angle + ptr->getWCSRotation(sys,sky) + M_PI);
+ else
rr += ptr->getWCSRotation(sys,sky);
- else {
- Coord::Orientation oo = keyContext->fits->getWCSOrientation(sys, sky);
- if (oo==Coord::XX) {
- rr = -(angle + ptr->getWCSRotation(sys,sky) + M_PI);
- }
- }
break;
}
@@ -50,14 +47,11 @@ double Base::mapAngleToRef(double angle, Coord::CoordSystem sys,
case Coord::AMPLIFIER:
break;
default:
- if (hasWCSCel(sys))
+ Coord::Orientation oo = keyContext->fits->getWCSOrientation(sys, sky);
+ if (oo==Coord::XX)
+ rr = -(angle + ptr->getWCSRotation(sys,sky) + M_PI);
+ else
rr -= ptr->getWCSRotation(sys,sky);
- else {
- Coord::Orientation oo = keyContext->fits->getWCSOrientation(sys, sky);
- if (oo==Coord::XX) {
- rr = -(angle + ptr->getWCSRotation(sys,sky) + M_PI);
- }
- }
break;
}