summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/twomassparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-07 17:00:02 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-07 17:00:02 (GMT)
commit16c382c84735c0f1108089c1d4a2c0cb5106f023 (patch)
treee2f8e0b0695f2ea67f8baf638444da9048063b6d /ds9/parsers/twomassparser.tac
parent537605d33cb4d01d9a34b61a8205c2259861fe08 (diff)
downloadblt-16c382c84735c0f1108089c1d4a2c0cb5106f023.zip
blt-16c382c84735c0f1108089c1d4a2c0cb5106f023.tar.gz
blt-16c382c84735c0f1108089c1d4a2c0cb5106f023.tar.bz2
update ds9 2mass parser
Diffstat (limited to 'ds9/parsers/twomassparser.tac')
-rw-r--r--ds9/parsers/twomassparser.tac18
1 files changed, 13 insertions, 5 deletions
diff --git a/ds9/parsers/twomassparser.tac b/ds9/parsers/twomassparser.tac
index 6514b75..e32e022 100644
--- a/ds9/parsers/twomassparser.tac
+++ b/ds9/parsers/twomassparser.tac
@@ -45,21 +45,29 @@ opt :
;
# COORD_ is depricated
+# NAME_ is depricated
+# new optional WCS_ FK5_, does nothing
+
2mass : {IMGSVRApply dtwomass 1}
| OPEN_ {}
| CLOSE_ {ARDestroy dtwomass}
| STRING_ {global dtwomass; set dtwomass(name) $1; IMGSVRApply dtwomass 1}
- | NAME_ STRING_ {global dtwomass; set dtwomass(name) $2; IMGSVRApply dtwomass 1}
| numeric numeric opt {global dtwomass; set dtwomass(x) $1; set dtwomass(y) $2; set dtwomass(skyformat) degrees; set dtwomass(skyformat,msg) degress; IMGSVRApply dtwomass 1}
| SEXSTR_ SEXSTR_ opt {global dtwomass; set dtwomass(x) $1; set dtwomass(y) $2; set dtwomass(skyformat) sexagesimal; set dtwomass(skyformat,msg) sexagesimal; IMGSVRApply dtwomass 1}
- | COORD_ numeric numeric deg {global dtwomass; set dtwomass(x) $2; set dtwomass(y) $3; set dtwomass(skyformat) $4; set dtwomass(skyformat,msg) $4; IMGSVRApply dtwomass 1}
- | COORD_ SEXSTR_ SEXSTR_ sex {global dtwomass; set dtwomass(x) $2; set dtwomass(y) $3; set dtwomass(skyformat) $4; set dtwomass(skyformat,msg) $4; IMGSVRApply dtwomass 1}
+ | SIZE_ numeric numeric {global dtwomass; set dtwomass(width) $2; set dtwomass(height) $3; set dtwomass(rformat) degrees; set dtwomass(rformat,msg) degrees}
| SIZE_ numeric numeric skyformat {global dtwomass; set dtwomass(width) $2; set dtwomass(height) $3; set dtwomass(rformat) $4; set dtwomass(rformat,msg) $4}
| SAVE_ yesno {global dtwomass; set dtwomass(save) $2}
| FRAME_ frame {global dtwomass; set dtwomass(mode) $2}
- | UPDATE_ FRAME_ {IMGSVRUpdate dtwomass; IMGSVRApply dtwomass 1}
- | UPDATE_ CROSSHAIR_ {IMGSVRCrosshair dtwomass; IMGSVRApply dtwomass 1}
+ | UPDATE_ update
| SURVEY_ survey {global dtwomass; set dtwomass(survey) $2}
+
+ | COORD_ numeric numeric deg {global dtwomass; set dtwomass(x) $2; set dtwomass(y) $3; set dtwomass(skyformat) $4; set dtwomass(skyformat,msg) $4; IMGSVRApply dtwomass 1}
+ | COORD_ SEXSTR_ SEXSTR_ sex {global dtwomass; set dtwomass(x) $2; set dtwomass(y) $3; set dtwomass(skyformat) $4; set dtwomass(skyformat,msg) $4; IMGSVRApply dtwomass 1}
+ | NAME_ STRING_ {global dtwomass; set dtwomass(name) $2; IMGSVRApply dtwomass 1}
+ ;
+
+update : FRAME_ {IMGSVRUpdate dtwomass; IMGSVRApply dtwomass 1}
+ | CROSSHAIR_ {IMGSVRCrosshair dtwomass; IMGSVRApply dtwomass 1}
;
frame : NEW_ {set _ new}