summaryrefslogtreecommitdiffstats
path: root/ds9/parsers
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-07-24 21:25:56 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-07-24 21:25:56 (GMT)
commit2f7d0607458b962e7ffe8054f3e3e6b4da01744a (patch)
tree1dbf4b50a3aa9690d2629d8634de0e65c2d22d6a /ds9/parsers
parent5f7153b8b5e1db87dfcf19afc211ac2a4c43fa8d (diff)
downloadblt-2f7d0607458b962e7ffe8054f3e3e6b4da01744a.zip
blt-2f7d0607458b962e7ffe8054f3e3e6b4da01744a.tar.gz
blt-2f7d0607458b962e7ffe8054f3e3e6b4da01744a.tar.bz2
simplify has wcs command
Diffstat (limited to 'ds9/parsers')
-rw-r--r--ds9/parsers/framesendlex.fcl1
-rw-r--r--ds9/parsers/framesendparser.tac8
2 files changed, 7 insertions, 2 deletions
diff --git a/ds9/parsers/framesendlex.fcl b/ds9/parsers/framesendlex.fcl
index 4fe5af3..441dc93 100644
--- a/ds9/parsers/framesendlex.fcl
+++ b/ds9/parsers/framesendlex.fcl
@@ -11,6 +11,7 @@ active {return $ACTIVE_}
all {return $ALL_}
aux {return $AUX_}
bin {return $BIN_}
+celestial {return $CELESTIAL_}
contour {return $CONTOUR_}
cube {return $CUBE_}
datamin {return $DATAMIN_}
diff --git a/ds9/parsers/framesendparser.tac b/ds9/parsers/framesendparser.tac
index 4390e0d..c297385 100644
--- a/ds9/parsers/framesendparser.tac
+++ b/ds9/parsers/framesendparser.tac
@@ -11,6 +11,7 @@
%token ALL_
%token AUX_
%token BIN_
+%token CELESTIAL_
%token CONTOUR_
%token CUBE_
%token DATAMIN_
@@ -84,12 +85,15 @@ system : coordsys {ProcessSendCmdCurrentYesNo "has $1"}
| wcssys {ProcessSendCmdCurrentYesNo "has wcs $1"}
;
-wcs : wcssys {ProcessSendCmdCurrentYesNo "has wcs $1"}
+wcs : wcstype {ProcessSendCmdCurrentYesNo "has wcs $1 wcs"}
| wcstype wcssys {ProcessSendCmdCurrentYesNo "has wcs $1 $2"}
+ | wcssys {ProcessSendCmdCurrentYesNo "has wcs $1"}
;
-wcstype : EQUATORIAL_ {set _ equatorial}
+wcstype : CELESTIAL_ {set _ celestial}
| LINEAR_ {set _ linear}
+ # backward compatibility
+ | EQUATORIAL_ {set _ celestial}
;
%%