diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-11-09 19:56:18 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-11-09 19:56:18 (GMT) |
commit | 1772cc3748f183d207660c21b164f9385853844d (patch) | |
tree | d698526b66f0f558ea1153600497546f47488d09 /ds9 | |
parent | 230ef6d812fc698695a7742f1ddce1d437f31fb4 (diff) | |
download | blt-1772cc3748f183d207660c21b164f9385853844d.zip blt-1772cc3748f183d207660c21b164f9385853844d.tar.gz blt-1772cc3748f183d207660c21b164f9385853844d.tar.bz2 |
add mask nan
Diffstat (limited to 'ds9')
-rw-r--r-- | ds9/doc/ref/command.html | 36 | ||||
-rw-r--r-- | ds9/doc/ref/samp.html | 41 | ||||
-rw-r--r-- | ds9/doc/ref/xpa.html | 46 | ||||
-rw-r--r-- | ds9/library/marker.tcl | 55 | ||||
-rw-r--r-- | ds9/library/mask.tcl | 24 | ||||
-rw-r--r-- | ds9/parsers/masklex.fcl | 2 | ||||
-rw-r--r-- | ds9/parsers/maskparser.tac | 4 |
7 files changed, 196 insertions, 12 deletions
diff --git a/ds9/doc/ref/command.html b/ds9/doc/ref/command.html index 33e438a..baecde8 100644 --- a/ds9/doc/ref/command.html +++ b/ds9/doc/ref/command.html @@ -449,6 +449,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [filter <string>]</tt><tt><br> </tt><tt> [<ref>] [filter load <filename>]</tt><tt><br> @@ -462,6 +463,7 @@ + [<ref>] [match]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[<ref>] [match error <value> @@ -479,6 +481,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [panto yes|no]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [plot <xcol> <ycol> <xerrcol> @@ -504,6 +507,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [save <filename>]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [server</tt><tt> </tt><tt>cds|adac|cadc|cambridge|sao|ukirt|iucaa|bejing|saao]</tt><tt><br> @@ -529,11 +533,13 @@ </tt><tt> </tt><tt> </tt><tt>[<ref>] + [symbol shape</tt><tt> </tt><tt>circle point|box point|diamond point|</tt><tt>cross point|x point|arrow point|boxcircle point]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> + [<ref>] [symbol add| [#] remove]</tt><tt><br> </tt><tt> [<ref>] [symbol save|load <filename>]</tt><tt><br> @@ -581,6 +587,7 @@ </tt><tt> $ds9 -catalog panto no</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>$ds9 -catalog plot</tt><tt> </tt><tt>'\$Jmag' + '\$Hmag' '\$e_Jmag' '\$e_Hmag'</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>$ds9 -catalog print</tt><tt><br> </tt><tt> </tt><tt>$ds9 -catalog psky fk5</tt><tt><br> @@ -674,6 +681,7 @@ + [match]<br> [lock [yes|no]]</tt><br> @@ -806,6 +814,7 @@ + <coordsys>]<br> [lock <coordsys>|none]</tt><br> @@ -967,6 +976,7 @@ </tt></tt></tt></tt></tt></tt></tt></tt> <tt><tt>$ds9 + -envi foo.hdr foo.bsq</tt></tt><tt><tt><tt><tt><tt><tt><br> </tt></tt></tt></tt></tt></tt> <p><b><a name="exit" id="exit"></a>exit<br> @@ -998,10 +1008,12 @@ </tt><tt>[big|little</tt><tt>|native]</tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt>-export <filename></tt><tt>.jpeg + [1-100]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>-export <filename></tt><tt>.tiff + [none|jpeg|packbits|deflate]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> Example:</tt><tt><br> @@ -1437,7 +1449,7 @@ <p>Controls mask parameters.</p> <tt>Syntax:<br> -mask [color <color>]<br> - [mark zero|nonzero|range]<br> + [mark zero|nonzero|nan|nonnan|range]<br> [range <low> <high>]<br> [transparency <value>]<br> </tt><tt><tt><tt> [system @@ -1465,9 +1477,11 @@ </tt><tt> </tt><tt> </tt><tt>[crosshair + <coordsys>]</tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt> + [crop <coordsys>]</tt><tt><br> </tt><tt> </tt><tt> [slice <coordsys>]</tt><tt><br> @@ -1480,6 +1494,7 @@ </tt><tt> [smooth]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> + [3d]</tt><tt><br> </tt><tt> </tt><tt><br> </tt><tt> Example:</tt><tt><br> @@ -1598,16 +1613,19 @@ + [pan]<br> + [crosshair]<br> + [open|close]<br> <br> Example:<br> @@ -1717,6 +1735,7 @@ + [yes|open]<br> [no|close]<br> @@ -1747,6 +1766,7 @@ </tt><tt> </tt><tt> </tt><tt># existing plot</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>-plot</tt><tt> </tt><tt>[[<plotname>] + load <filename> xy|xyex|xyey|xyexey]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] save <filename>]</tt><tt><br> @@ -1761,6 +1781,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + loadconfig <filename>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] saveconfig <filename>]</tt><tt><br> @@ -1782,9 +1803,11 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + close</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + mode pointer|zoom]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># configure graph</tt><tt><br> @@ -1805,6 +1828,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + legend yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] legend position right|left|top|bottom]</tt><tt><br> @@ -1827,6 +1851,7 @@ </tt><tt> </tt><tt> </tt><tt> [</tt><tt>[<plotname>] + barmode normal|stacked|aligned|overlap]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># configure current dataset</tt><tt><br> @@ -2009,6 +2034,7 @@ <filename>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> + [color rgb|cmyk|gray]</tt><tt><br> </tt><tt> [level 1|2]</tt><tt><br> </tt><tt> [resolution @@ -2290,6 +2316,7 @@ + [image|table|slice]</tt><br> <tt> <br> Example:<br> @@ -2407,6 +2434,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[<ref>] + [crosshair]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [export sb|tsv <filename>]</tt><tt><br> @@ -2429,6 +2457,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[<ref>] + [update]</tt><tt><br> </tt><tt> </tt><tt><br> </tt><tt> Example:</tt><tt><br> @@ -2538,17 +2567,20 @@ + [sigma <value>]<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt> + [sigmaminor <value>]<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt> [angle + <value>]<br> </tt></tt></tt></tt></tt></tt></tt> [match]<br> @@ -2568,10 +2600,12 @@ + sigmaminor 2.0<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt>$ds9 + -smooth angle 45<br> </tt></tt></tt></tt></tt></tt></tt> $ds9 -smooth match<br> diff --git a/ds9/doc/ref/samp.html b/ds9/doc/ref/samp.html index e9d4a4a..025e981 100644 --- a/ds9/doc/ref/samp.html +++ b/ds9/doc/ref/samp.html @@ -464,6 +464,7 @@ </tt><tt> </tt><tt> </tt><tt> + [2mass|iras]</tt><tt><br> </tt><tt> [csc|xmm|rosat]</tt><tt><br> @@ -504,6 +505,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [filter <string>]</tt><tt><br> </tt><tt> [<ref>] [filter load <filename>]</tt><tt><br> @@ -517,6 +519,7 @@ + [<ref>] [match <ref> <ref>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[<ref>] [match error <value> @@ -534,6 +537,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [panto yes|no]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [plot <xcol> <ycol> <xerrcol> @@ -559,6 +563,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [save <filename>]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [server</tt><tt> </tt><tt>cds|adac|cadc|cambridge|sao|ukirt|iucaa|bejing|saao]</tt><tt><br> @@ -585,6 +590,7 @@ </tt><tt> </tt><tt> </tt><tt>[<ref>] + [symbol shape</tt><tt> </tt><tt>circle point|box point|diamond point|</tt><tt>cross point|x point|arrow point|boxcircle point]</tt><tt><br> </tt><tt> </tt><tt> @@ -640,6 +646,7 @@ </tt><tt> catalog panto no</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>catalog plot</tt><tt> </tt><tt>{$Jmag} + {$Hmag} {$e_Jmag} {$e_Hmag}</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>catalog print</tt><tt><br> </tt><tt> </tt><tt>catalog psky fk5</tt><tt><br> @@ -656,6 +663,7 @@ </tt><tt> </tt><tt>catalog symbol condition</tt><tt> </tt><tt>{$Jmag>15}</tt><tt><br> </tt><tt> </tt><tt>catalog symbol 2 shape</tt><tt> </tt><tt>{boxcircle + point}</tt><tt><br> </tt><tt> </tt><tt>catalog symbol color red</tt><tt><br> </tt><tt> catalog symbol font times</tt><tt><br> @@ -798,6 +806,7 @@ </tt></tt> <tt><tt><tt> + [save levels <filename>]<br> </tt></tt> [copy]<br> [paste @@ -880,6 +889,7 @@ </tt><tt> [reset]</tt><tt><br> </tt><tt> [3d</tt><tt> </tt><tt>zmin + zmax <coordsys>]</tt><tt><br> </tt><tt> [open|close]</tt><tt><br> </tt><tt> </tt><tt><br> @@ -1615,6 +1625,7 @@ + Macros</a> for more information.</p> <tt>Syntax:<br> iexam []<br> @@ -1754,7 +1765,7 @@ <p>Controls mask parameters.</p> <tt>Syntax:<br> mask [color <color>]<br> - [mark zero|nonzero|range]<br> + [mark zero|nonzero|nan|nonnan|range]<br> [range <low> <high>]<br> [transparency <value>]<br> [system <coordsys>]<br> @@ -2121,6 +2132,7 @@ </tt><tt> </tt><tt> </tt><tt># existing plot</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>plot</tt><tt> </tt><tt>[[<plotname>] + load <filename> xy|xyex|xyey|xyexey]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] save <filename>]</tt><tt><br> @@ -2129,18 +2141,22 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + duplicate [#]]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + stats yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + list yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + loadconfig <filename>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] saveconfig <filename>]</tt><tt><br> @@ -2162,10 +2178,12 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + close</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + mode pointer|zoom]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># configure graph</tt><tt><br> @@ -2186,6 +2204,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + legend yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] legend position right|left|top|bottom]</tt><tt><br> @@ -2208,6 +2227,7 @@ </tt><tt> </tt><tt> </tt><tt> [</tt><tt>[<plotname>] + barmode normal|stacked|aligned|overlap]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># configure current dataset</tt><tt><br> @@ -2215,48 +2235,59 @@ yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + shape circle|square|diamond|plus|splus|scross|triangle|arrow]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + shape fill yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + shape color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + smooth step|linear|cubic|quadratic|catrom]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + width <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + dash yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + error yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + error color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + error width <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + name <string>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># select current dataset</tt><tt><br> @@ -2958,6 +2989,7 @@ </tt><tt> </tt><tt> </tt><tt> + [<ref>] [save <filename>]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [radius <value> degrees|arcmin|arcsec]</tt><tt><br> @@ -3078,21 +3110,25 @@ + [sigma <value>]<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt> + [sigmaminor <value>]<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt> [angle + <value>]<br> </tt></tt></tt></tt></tt></tt></tt></tt> <tt> + [match]<br> [lock [yes|no]]</tt><br> <tt><tt> [open|close]<br> @@ -3116,14 +3152,17 @@ </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt>smooth + sigma 2.0<br> </tt></tt></tt></tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt>smooth + sigmaminor 2.0<br> </tt></tt></tt></tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>smooth + angle 45<br> </tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt> smooth open<br> diff --git a/ds9/doc/ref/xpa.html b/ds9/doc/ref/xpa.html index 8af6b06..8e1fa46 100644 --- a/ds9/doc/ref/xpa.html +++ b/ds9/doc/ref/xpa.html @@ -209,6 +209,7 @@ </tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt>$xpaset + -p ds9 3d match</tt></tt></tt></tt></tt></tt></tt></tt><br> <tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaset -p ds9 3d lock yes</tt><br> @@ -449,6 +450,7 @@ <tt> </tt> <tt>[<ref>] + [crosshair]</tt><br> <tt> [<ref>] [dec <col>]</tt><br> @@ -470,24 +472,29 @@ + [<ref>] [match <ref> <ref>]<br> </tt></tt> </tt> <tt>[<ref>] [match + error <value> degrees|arcmin|arcsec]</tt><br> <tt> </tt> <tt>[<ref>] + [match function 1and2|1not2|2not1]<br> </tt> <tt> </tt> <tt>[<ref>] + [match return 1and2|1only|2only]</tt><br> <tt> </tt> <tt>[<ref>] + [match unique yes|no]</tt><br> <tt> [<ref>] [maxrows <number>]</tt><br> @@ -538,9 +545,11 @@ + shape</tt></tt> <tt><tt>circle point|box point|diamond point|</tt>cross + point|x point|arrow point|boxcircle point]<br> [<ref>] [symbol add| [#] remove]<br> @@ -551,6 +560,7 @@ </tt> <tt> </tt> <tt>[<ref>] + [update]</tt><br> <tt> [<ref>] [x <col>]</tt><br> @@ -1079,6 +1089,7 @@ </tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaset + -p ds9 export envi foo.hdr foo.bsq little</tt></tt><br> </tt></tt></tt></tt> $xpaset -p ds9 export tiff foo.tiff jpeg</tt></tt></tt><br> @@ -1621,7 +1632,7 @@ <p>Controls mask parameters.</p> <tt>Syntax:<br> mask [color <color>]<br> - [mark zero|nonzero|range]<br> + [mark zero|nonzero|nan|nonnan|range]<br> [range <low> <high>]<br> [transparency <value>]<br> </tt><tt><tt> [system <coordsys>]<br> @@ -1966,6 +1977,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[new + [line|bar|scatter] <title> <xaxis label> <yaxis label></tt><tt> </tt><tt>xy|xyex|xyey|xyexey</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[new</tt><tt> @@ -1982,9 +1994,11 @@ </tt><tt>[line|bar|scatter]</tt><tt> </tt><tt>stdin</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[new + name <plotname> stdin</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[new + name <plotname></tt><tt> </tt><tt>line|bar|scatter</tt><tt> </tt><tt>stdin</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> @@ -1996,6 +2010,7 @@ </tt><tt> </tt><tt> </tt><tt># existing plot</tt><tt><br> </tt><tt> </tt><tt> </tt><tt>plot</tt><tt> </tt><tt>[[<plotname>] + load <filename> xy|xyex|xyey|xyexey]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] save <filename>]</tt><tt><br> @@ -2004,18 +2019,22 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + duplicate [#]]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + stats yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + list yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + loadconfig <filename>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] saveconfig <filename>]</tt><tt><br> @@ -2037,10 +2056,12 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + close</tt><tt>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + mode pointer|zoom]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># configure graph</tt><tt><br> @@ -2061,6 +2082,7 @@ </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + legend yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] legend position right|left|top|bottom]</tt><tt><br> @@ -2083,6 +2105,7 @@ </tt><tt> </tt><tt> </tt><tt> [</tt><tt>[<plotname>] + barmode normal|stacked|aligned|overlap]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># configure current dataset</tt><tt><br> @@ -2090,48 +2113,59 @@ yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + shape circle|square|diamond|plus|splus|scross|triangle|arrow]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + shape fill yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + shape color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + smooth step|linear|cubic|quadratic|catrom]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + width <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + dash yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + error yes|no]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + error color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> [[<plotname>] color <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + error width <value>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[[<plotname>] + name <string>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt><br> </tt><tt> </tt><tt> </tt><tt># select current dataset</tt><tt><br> @@ -2815,6 +2849,7 @@ <ra> <dec> <coordsys>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[<ref>] + [crosshair]</tt><tt><br> </tt><tt> </tt><tt> [<ref>] [export sb|tsv <filename>]</tt><tt><br> @@ -2835,6 +2870,7 @@ [system <coordsys>]</tt><tt><br> </tt><tt> </tt><tt> </tt><tt> </tt><tt> </tt><tt>[<ref>] + [update]</tt><br> <tt><br> Example:<br> @@ -2939,21 +2975,25 @@ + [sigma <value>]<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt> + [sigmaminor <value>]<br> </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt> [angle + <value>]<br> </tt></tt></tt></tt></tt></tt></tt></tt> <tt> + [match]<br> [lock [yes|no]]</tt><br> <tt><tt> [open|close]<br> @@ -2967,6 +3007,7 @@ </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget + ds9 smooth sigmaminor<br> </tt></tt></tt></tt></tt></tt></tt></tt> $xpaget ds9 smooth lock<br> @@ -2979,14 +3020,17 @@ </tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaset + -p ds9 smooth sigma 2.0<br> </tt></tt></tt></tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaset + -p ds9 smooth sigmaminor 2.0<br> </tt></tt></tt></tt></tt></tt></tt></tt></tt> <tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaset + -p ds9 smooth angle 45<br> </tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt> $xpaset -p ds9 smooth match<br> diff --git a/ds9/library/marker.tcl b/ds9/library/marker.tcl index 71e8424..962448f 100644 --- a/ds9/library/marker.tcl +++ b/ds9/library/marker.tcl @@ -51,6 +51,8 @@ proc MarkerDef {} { set marker(format) ds9 + set marker(mask) nonzero + # these are only used for save/load/list and # are set from current wcs values array set pmarker [array get marker] @@ -1257,7 +1259,58 @@ proc MarkerMask {} { return } - $current(frame) marker create mask + if {[MarkerMaskParamsDialog]} { +# $current(frame) marker create mask $marker(mask) + } +} + +proc MarkerMaskParamsDialog {} { + global marker + global ed + + set w {.markermskd} + + set ed(ok) 0 + set ed(mask) $marker(mask) + + DialogCreate $w [msgcat::mc {Mask Parameters}] ed(ok) + + # Param + set f [ttk::frame $w.param] + + ttk::label $f.marktitle -text [msgcat::mc {Block}] + ttk::radiobutton $f.zero -text [msgcat::mc {Zero}] \ + -variable marker(mask) -value zero + ttk::radiobutton $f.nonzero -text [msgcat::mc {Non-zero}] \ + -variable marker(mask) -value nonzero + + grid $f.marktitle $f.zero $f.nonzero -padx 2 -pady 2 -sticky w + + # Buttons + set f [ttk::frame $w.buttons] + ttk::button $f.ok -text [msgcat::mc {OK}] -command {set ed(ok) 1} \ + -default active + ttk::button $f.cancel -text [msgcat::mc {Cancel}] -command {set ed(ok) 0} + pack $f.ok $f.cancel -side left -expand true -padx 2 -pady 4 + + bind $w <Return> {set ed(ok) 1} + + # Fini + ttk::separator $w.sep -orient horizontal + pack $w.buttons $w.sep -side bottom -fill x + pack $w.param -side top -fill both -expand true + + DialogCenter $w + DialogWait $w ed(ok) + DialogDismiss $w + + if {$ed(ok)} { + set marker(mask) $ed(mask) + } + + set rr $ed(ok) + unset ed + return $rr } proc MarkerInfo {} { diff --git a/ds9/library/mask.tcl b/ds9/library/mask.tcl index f04982b..0c1f0ee 100644 --- a/ds9/library/mask.tcl +++ b/ds9/library/mask.tcl @@ -247,21 +247,29 @@ proc MaskParamsDialog {} { ttk::label $f.colortitle -text [msgcat::mc {Color}] ColorMenuButton $f.colorbutton ed color {} - ttk::label $f.marktitle -text [msgcat::mc {Block}] - ttk::radiobutton $f.zero -text [msgcat::mc {Zero}] \ + ttk::label $f.marktitle -text [msgcat::mc {Block Pixel}] + set mb $f.markbutton.menu + ttk::menubutton $f.markbutton -textvariable ed(mark) -menu $mb + menu $mb + $mb add radiobutton -label [msgcat::mc {Zero}] \ -variable ed(mark) -value zero - ttk::radiobutton $f.nonzero -text [msgcat::mc {Non-zero}] \ + $mb add radiobutton -label [msgcat::mc {Non-Zero}] \ -variable ed(mark) -value nonzero - ttk::radiobutton $f.range -text [msgcat::mc {Range}] \ + $mb add radiobutton -label [msgcat::mc {NAN}] \ + -variable ed(mark) -value nan + $mb add radiobutton -label [msgcat::mc {Non-NAN}] \ + -variable ed(mark) -value nonnan + $mb add radiobutton -label [msgcat::mc {Range}] \ -variable ed(mark) -value range + ttk::label $f.rangetitle -text [msgcat::mc {Range}] ttk::entry $f.low -textvariable ed(low) -width 13 ttk::entry $f.high -textvariable ed(high) -width 13 - grid $f.coordtitle $f.coordbutton - - - -padx 2 -pady 2 -sticky w - grid $f.colortitle $f.colorbutton - - - -padx 2 -pady 2 -sticky w - grid $f.marktitle $f.zero $f.nonzero $f.range -padx 2 -pady 2 -sticky w - grid $f.rangetitle $f.low - $f.high -padx 2 -pady 2 -sticky w + grid $f.coordtitle $f.coordbutton -padx 2 -pady 2 -sticky w + grid $f.colortitle $f.colorbutton -padx 2 -pady 2 -sticky w + grid $f.marktitle $f.markbutton -padx 2 -pady 2 -sticky w + grid $f.rangetitle $f.low $f.high -padx 2 -pady 2 -sticky w # Buttons set f [ttk::frame $w.buttons] diff --git a/ds9/parsers/masklex.fcl b/ds9/parsers/masklex.fcl index cafe4b6..22817ef 100644 --- a/ds9/parsers/masklex.fcl +++ b/ds9/parsers/masklex.fcl @@ -11,6 +11,8 @@ close {return $CLOSE_} clear {return $CLEAR_} color {return $COLOR_} mark {return $MARK_} +nan {return $NAN_} +nonnan {return $NONNAN_} nonzero {return $NONZERO_} open {return $OPEN_} range {return $RANGE_} diff --git a/ds9/parsers/maskparser.tac b/ds9/parsers/maskparser.tac index df578d4..3c777a7 100644 --- a/ds9/parsers/maskparser.tac +++ b/ds9/parsers/maskparser.tac @@ -13,6 +13,8 @@ %token CLOSE_ %token COLOR_ %token MARK_ +%token NAN_ +%token NONNAN_ %token NONZERO_ %token OPEN_ %token RANGE_ @@ -45,6 +47,8 @@ mask : {global parse; set parse(result) mask} mark : ZERO_ {set _ zero} | NONZERO_ {set _ nonzero} + | NAN_ {set _ nan} + | NONNAN_ {set _ nonnan} | RANGE_ {set _ range} ; |