summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-07-31 20:21:09 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-07-31 20:21:09 (GMT)
commit7990845e615977f407f88e6324abf5349438a2a8 (patch)
tree26da0d37e891b54b2a27a207f124cfef35cc8a4c
parent4a95d7d2042b5c25e992afefe5004d8d8b774a7c (diff)
downloadblt-7990845e615977f407f88e6324abf5349438a2a8.zip
blt-7990845e615977f407f88e6324abf5349438a2a8.tar.gz
blt-7990845e615977f407f88e6324abf5349438a2a8.tar.bz2
fix issue with rotation angle wcs which is flipx
-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;
}