diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-03-14 18:05:45 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-03-14 18:05:45 (GMT) |
commit | 5653c1de66efb783b20b2fe6576fb06b357c005b (patch) | |
tree | a760ffc1d27871886d4d4f0be7ce3e1b57133d9f /ds9/parsers/binparser.tac | |
parent | 1bbd30a2b46492aafbd58853ba9f0fbaa6e8cb32 (diff) | |
download | blt-5653c1de66efb783b20b2fe6576fb06b357c005b.zip blt-5653c1de66efb783b20b2fe6576fb06b357c005b.tar.gz blt-5653c1de66efb783b20b2fe6576fb06b357c005b.tar.bz2 |
close catalog header if open when close catalog
Diffstat (limited to 'ds9/parsers/binparser.tac')
-rw-r--r-- | ds9/parsers/binparser.tac | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/ds9/parsers/binparser.tac b/ds9/parsers/binparser.tac index a9dfc9d..12bf312 100644 --- a/ds9/parsers/binparser.tac +++ b/ds9/parsers/binparser.tac @@ -11,6 +11,7 @@ %token AVERAGE_ %token BUFFERSIZE_ %token CENTER_ +%token CLEAR_ %token CLOSE_ %token COLS_ %token COLSZ_ @@ -40,17 +41,17 @@ bin : CLOSE_ {BinDestroyDialog} | OPEN_ {BinDialog} | MATCH_ {MatchBinCurrent} | LOCK_ yesno {global bin; set bin(lock) $2; LockBinCurrent} - | ABOUT_ binAbout + | ABOUT_ about | BUFFERSIZE_ INT_ {global bin; set bin(buffersize) $2; ChangeBinBufferSize} | COLS_ cols cols {BinCols \"$2\" \"$3\" \"\"} | COLSZ_ cols cols cols {BinCols \"$2\" \"$3\" \"$4\"} - | FACTOR_ binFactor + | FACTOR_ factor | DEPTH_ INT_ {global bin; set bin(depth) $2; ChangeBinDepth} - | FILTER_ STRING_ {BinFilter $2} - | FUNCTION_ binFunction {global bin; set bin(function) $2; ChangeBinFunction} + | FILTER_ filter {BinFilter $2} + | FUNCTION_ function {global bin; set bin(function) $2; ChangeBinFunction} | IN_ {Bin .5 .5} | OUT_ {Bin 2 2} - | TO_ binTo + | TO_ to ; cols : STRING_ {set _ $1} @@ -65,19 +66,23 @@ colsxyz : 'x' {set _ $1} | 'Z' {set _ $1} ; -binAbout : numeric numeric {BinAbout $1 $2} +about : numeric numeric {BinAbout $1 $2} | CENTER_ {BinAboutCenter} ; -binFactor : numeric {global bin; set bin(factor) "$1 $1"; ChangeBinFactor} +factor : numeric {global bin; set bin(factor) "$1 $1"; ChangeBinFactor} | numeric numeric {global bin; set bin(factor) "$1 $2"; ChangeBinFactor} ; -binFunction: AVERAGE_ {set _ average} +filter : CLEAR_ {set _ {}} + | STRING_ {set _ $1} + ; + +function: AVERAGE_ {set _ average} | SUM_ {set _ sum} ; -binTo: binFactor +to: factor | FIT_ {BinToFit} ; |