diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-03-30 17:44:03 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-03-30 17:44:03 (GMT) |
commit | a1091f5b5bcc9a455bfb59f102adf09677bd8a8e (patch) | |
tree | 8b497be766f8d3b322ca8fc54ad9d37eea2cca8e /ds9/parsers/zscaleparser.tac | |
parent | 74f83737644d7686a49ca93a244af7720ba9c009 (diff) | |
download | blt-a1091f5b5bcc9a455bfb59f102adf09677bd8a8e.zip blt-a1091f5b5bcc9a455bfb59f102adf09677bd8a8e.tar.gz blt-a1091f5b5bcc9a455bfb59f102adf09677bd8a8e.tar.bz2 |
update ds9 view parser
Diffstat (limited to 'ds9/parsers/zscaleparser.tac')
-rw-r--r-- | ds9/parsers/zscaleparser.tac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ds9/parsers/zscaleparser.tac b/ds9/parsers/zscaleparser.tac index 573674a..bf5ced8 100644 --- a/ds9/parsers/zscaleparser.tac +++ b/ds9/parsers/zscaleparser.tac @@ -20,10 +20,10 @@ command : zscale | zscale {yyclearin; YYACCEPT} STRING_ ; -zscale : yesno {global scale; set scale(mode) zscale; ChangeScaleMode} - | CONTRAST_ numeric {global zscale; set zscale(contrast) $2; ChangeZScale} - | SAMPLE_ INT_ {global zscale; set zscale(sample) $2; ChangeZScale} - | LINE_ INT_ {global zscale; set zscale(line) $2; ChangeZScale} +zscale : yesno {ScaleCmdSet mode zscale ChangeScaleMode} + | CONTRAST_ numeric {ZscaleCmdSet contrast $2 ChangeZScale} + | SAMPLE_ INT_ {ZscaleCmdSet sample $2 ChangeZScale} + | LINE_ INT_ {ZscaleCmdSet line $2 ChangeZScale} ; %% |