summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ds9/doc/ref/samp.html163
-rw-r--r--ds9/doc/ref/xpa.html82
-rw-r--r--ds9/library/fits.tcl106
-rw-r--r--ds9/library/source.tcl2
-rw-r--r--ds9/parsers/fitssendlex.fcl31
-rw-r--r--ds9/parsers/fitssendparser.tac83
6 files changed, 342 insertions, 125 deletions
diff --git a/ds9/doc/ref/samp.html b/ds9/doc/ref/samp.html
index 82c25c4..00e092c 100644
--- a/ds9/doc/ref/samp.html
+++ b/ds9/doc/ref/samp.html
@@ -581,6 +581,7 @@
+
[crosshair]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;ref&gt;] [dec
&lt;col&gt;]</tt><br>
@@ -698,6 +699,7 @@
+
[match error &lt;value&gt; degrees|arcmin|arcsec]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[&lt;ref&gt;]
@@ -797,6 +799,7 @@
+
[match function 1and2|1not2|2not1]<br>
</tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[&lt;ref&gt;]
@@ -896,6 +899,7 @@
+
[match return 1and2|1only|2only]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[&lt;ref&gt;]
@@ -995,6 +999,7 @@
+
[match unique yes|no]</tt><br>
<tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [&lt;ref&gt;] [maxrows
&lt;number&gt;]</tt><br>
@@ -1050,6 +1055,7 @@
+
[symbol shape </tt></tt></tt></tt><tt><tt><tt><tt><tt><tt>circle
@@ -1057,6 +1063,7 @@
+
point|box point|diamond point|</tt></tt></tt></tt>cross
@@ -1064,6 +1071,7 @@
+
point|x point|arrow point|boxcircle point]<br>
</tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;ref&gt;]
[symbol add| [#] remove]<br>
@@ -1169,6 +1177,7 @@
+
[update]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;ref&gt;] [x
&lt;col&gt;]</tt><br>
@@ -1773,60 +1782,40 @@
fits mask</tt>
<p>Syntax: <br>
</p>
- <tt> fits [size|width|height|depth|bitpix]<br>
- &nbsp; &nbsp;&nbsp; [size [wcs|wcsa...wcsz]
- [fk4|fk5|icrs|galactic|ecliptic] [degrees|arcmin|arcsecs]]<br>
- &nbsp;&nbsp;&nbsp;&nbsp; [type]<br>
- &nbsp;&nbsp;&nbsp; &nbsp;[header [&lt;ext&gt;] [keyword
- &lt;string&gt;]]<br>
- &nbsp;&nbsp;&nbsp;&nbsp; [image|table|resample] [gz] <br>
- &nbsp;&nbsp;&nbsp;&nbsp; [new|mask][&lt;options&gt;]<br>
- &nbsp;&nbsp;&nbsp;&nbsp; [new][slice &lt;options&gt;]<br>
- &nbsp;&nbsp;&nbsp; &nbsp;[new][mecube &lt;options&gt;]<br>
- &nbsp;&nbsp;&nbsp;&nbsp; [new|mask][mosaicimage
- [iraf|wcs|wcsa...wcsz|wfpc2] &lt;options&gt;]<br>
- &nbsp;&nbsp;&nbsp;&nbsp; [new|mask][mosaic
- [iraf|wcs|wcsa...wcsz] &lt;options&gt;]<br>
- &nbsp;&nbsp;&nbsp;&nbsp; [new][rgbcube &lt;options&gt;]<br>
- &nbsp; &nbsp; &nbsp;[new][rgbimage &lt;options&gt;]<br>
- &nbsp;<br>
+ <tt> </tt><tt><tt>fits </tt><tt><tt>[new|mask|slice]
+ [&lt;filename&gt;]</tt><tt><br>
+ </tt>&nbsp;&nbsp;&nbsp;&nbsp; [width|height|depth|bitpix]<br>
+ &nbsp; &nbsp;&nbsp; [size [wcs|wcsa...wcsz]
+ [fk4|fk5|icrs|galactic|ecliptic] [degrees|arcmin|arcsecs]]<br>
+ &nbsp;&nbsp;&nbsp; &nbsp;[header [&lt;ext&gt;] [keyword
+ &lt;string&gt;]]<br>
+ &nbsp;&nbsp;&nbsp;&nbsp; [image|table|slice]</tt><tt><br>
+ &nbsp; </tt><br>
Example:<br>
string value = ds9.get(string cmd)<br>
- fits size<br>
- fits width<br>
- fits height<br>
- fits depth<br>
- fits bitpix<br>
- fits size wcs fk5 arcmin<br>
- fits type <br>
- fits header keyword BITPIX<br>
- fits header 1 keyword BITPIX<br>
- string url = ds9.get(string cmd)<br>
+ </tt><tt><tt>fits width<br>
+ fits height<br>
+ fits depth<br>
+ fits bitpix</tt><br>
+ <tt><tt>fits size<br>
+ </tt> fits size wcs fk5 arcmin<br>
+ fits header # primary<br>
+ fits header 2 # hdu 2<br>
+ fits header -2 # hdu 2 with inherit<br>
+ fits header keyword BITPIX<br>
+ fits header 1 keyword BITPIX</tt><br>
fits<br>
fits image<br>
- fits image gz<br>
- fits table<br>
- fits table gz<br>
- fits resample<br>
- fits resample gz<br>
- fits header # primary<br>
- fits header 2 # hdu 2<br>
- fits header -2 # hdu 2 with inherit<br>
- ds9.set(string cmd, string url)<br>
- fits <br>
- fits [2] <br>
- fits new [bin=detx,dety]<br>
- fits slice<br>
- fits mecube <br>
- fits mosaicimage iraf<br>
- fits mosaicimage wcs<br>
- fits mosaicimage wcsa<br>
- fits mosaicimage wfpc2<br>
- fits mosaic iraf<br>
- fits mosaic wcs<br>
- fits rgbcube<br>
- fits rgbimage </tt>
- <p><b> <a name="frame"></a>frame</b></p>
+ </tt><tt><tt>fits table<br>
+ </tt></tt><tt><tt><tt>fits slice<br>
+ </tt></tt>ds9.set(string cmd, string url)</tt><tt><br>
+ fits foo.fits<br>
+ fits new foo.fits<br>
+ fits bar.fits[bin=detx,dety]<br>
+ fits slice foo.fits<br>
+ fits mask foo.fits<br>
+ <br>
+ </tt><b><a name="frame"></a>frame</b>
<p>Controls frame functions. Frames may be created, deleted,
reset, and centered. While return the current frame number. If
you goto a frame that does not exists, it will be created. If
@@ -2238,6 +2227,7 @@
+
Macros</a> for more information.</p>
<tt> Syntax: <br>
iexam []<br>
@@ -2362,6 +2352,7 @@
+
</tt>quality (1-100) </p>
<tt> Syntax:<br>
jpeg [new|slice] [&lt;filename&gt;] [1-100]<br>
@@ -2810,6 +2801,7 @@
+
[new name &lt;plotname&gt; line|bar|scatter]</tt></tt></tt></tt></tt></tt></tt></tt><br>
</tt><tt><br>
</tt><tt><tt># </tt><tt><tt><tt>load data into existing plot from
@@ -2896,6 +2888,7 @@
+
duplicate [#]]<br>
</tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -2972,6 +2965,7 @@
+
</tt>[[&lt;plotname&gt;] stats yes|no]<br>
</tt></tt>&nbsp;&nbsp;&nbsp;&nbsp; </tt>[[&lt;plotname&gt;]
@@ -3047,6 +3041,7 @@
+
list yes|no]<br>
&nbsp;&nbsp;&nbsp;&nbsp; </tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3122,6 +3117,7 @@
+
loadconfig &lt;filename&gt;]<br>
&nbsp;&nbsp;&nbsp;&nbsp; [[&lt;plotname&gt;] saveconfig
&lt;filename&gt;]<br>
@@ -3199,6 +3195,7 @@
+
[[&lt;plotname&gt;] pagesetup orient portrait|landscape]<br>
&nbsp;&nbsp;&nbsp;&nbsp; [[&lt;plotname&gt;] pagesetup
size letter|legal|tabloid|poster|a4]</tt><br>
@@ -3276,6 +3273,7 @@
+
[[&lt;plotname&gt;] print]<br>
&nbsp; &nbsp;&nbsp; [[&lt;plotname&gt;] print
destination printer|file]<br>
@@ -3375,6 +3373,7 @@
+
legend yes|no]<br>
&nbsp;&nbsp;&nbsp;&nbsp; [[&lt;plotname&gt;] legend position
right|left|top|bottom]</tt><br>
@@ -3461,6 +3460,7 @@
+
barmode normal|stacked|aligned|overlap]<br>
<br>
</tt> # configure current dataset<br>
@@ -3539,6 +3539,7 @@
+
shape
circle|square|diamond|plus|splus|scross|triangle|arrow]</tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp; <tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3615,6 +3616,7 @@
+
shape fill yes|no]</tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp; <tt>
</tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3694,6 +3696,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3768,6 +3771,7 @@
+
smooth
step|linear|cubic|quadratic|catrom]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -3845,6 +3849,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3919,6 +3924,7 @@
+
color
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -3996,6 +4002,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4070,6 +4077,7 @@
+
width
&lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4147,6 +4155,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4221,6 +4230,7 @@
+
dash yes|no]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4297,6 +4307,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4371,6 +4382,7 @@
+
error yes|no]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4447,6 +4459,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4521,6 +4534,7 @@
+
error color
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4598,6 +4612,7 @@
+
[[&lt;plotname&gt;]
@@ -4672,6 +4687,7 @@
+
color
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4749,6 +4765,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4823,6 +4840,7 @@
+
error width
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4900,6 +4918,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4974,6 +4993,7 @@
+
name
&lt;string&gt;]<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><br>
@@ -5068,6 +5088,7 @@
+
value = ds9.get(string cmd)<br>
</tt></tt></tt></tt></tt></tt>plot
stats<br>
@@ -5170,6 +5191,7 @@
+
axis x auto<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5240,6 +5262,7 @@
+
axis x min<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5310,6 +5333,7 @@
+
axis x max<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5380,6 +5404,7 @@
+
axis x format<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>plot
@@ -5450,6 +5475,7 @@
+
legend<br>
</tt></tt></tt></tt><tt><tt><tt><tt><tt>plot legend
position<br>
@@ -5528,6 +5554,7 @@
+
font numbers size<br>
</tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5602,6 +5629,7 @@
+
font numbers weight<br>
</tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5676,6 +5704,7 @@
+
font numbers slant<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5750,6 +5779,7 @@
+
title<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5824,6 +5854,7 @@
+
title x<br>
plot barmode<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>
@@ -5848,6 +5879,7 @@
+
cmd)<br>
</tt></tt></tt>plot legend yes<br>
</tt><tt>plot legend position left</tt><tt><tt><tt><tt><br>
@@ -5858,6 +5890,7 @@
+
value = ds9.get(string cmd)<br>
</tt></tt></tt></tt></tt></tt>plot font
numbers font<br>
@@ -5867,6 +5900,7 @@
+
font numbers size<br>
</tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5874,6 +5908,7 @@
+
font numbers weight<br>
</tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5881,6 +5916,7 @@
+
font numbers slant<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt>ds9.set(string
@@ -5888,6 +5924,7 @@
+
cmd)<br>
</tt></tt></tt>plot font numbers font times<br>
plot font numbers size 12<br>
@@ -5900,6 +5937,7 @@
+
value = ds9.get(string
cmd)<br>
</tt></tt></tt></tt></tt></tt>plot
@@ -5908,6 +5946,7 @@
+
title<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5915,6 +5954,7 @@
+
title xaxis</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -5922,6 +5962,7 @@
+
title yaxis</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt>ds9.set(string
@@ -5929,6 +5970,7 @@
+
cmd)<br>
</tt></tt></tt>plot title "This is a Title"<br>
plot title x "X Axis"<br>
@@ -5941,6 +5983,7 @@
+
value =
ds9.get(string
cmd)<br>
@@ -5950,6 +5993,7 @@
+
barmode<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt>ds9.set(string
@@ -5958,6 +6002,7 @@
+
cmd)<br>
</tt></tt></tt>plot barmode aligned<br>
</tt><tt><tt><br>
@@ -6045,6 +6090,7 @@
+
dash<br>
</tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -6119,6 +6165,7 @@
+
error<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -6193,6 +6240,7 @@
+
error color<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -6267,6 +6315,7 @@
+
error width<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>plot
@@ -6341,6 +6390,7 @@
+
name<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt>ds9.set(string
@@ -6415,6 +6465,7 @@
+
cmd)<br>
</tt>plot show yes<br>
plot shape circle<br>
@@ -6464,6 +6515,7 @@
+
</tt></tt><tt><tt><tt>&lt;dms&gt;</tt></tt></tt><tt><tt><tt><tt>
&lt;arcmin&gt; </tt></tt></tt></tt><tt><tt><tt><tt><tt>&lt;arcsec&gt;<br>
<br>
@@ -7084,6 +7136,7 @@
+
[crosshair]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;ref&gt;]
[export sb|tsv &lt;filename&gt;]<br>
@@ -7200,6 +7253,7 @@
+
[update]</tt><br>
&nbsp; <tt><br>
Example:<br>
@@ -7322,6 +7376,7 @@
+
[sigma &lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -7337,6 +7392,7 @@
+
[sigmaminor &lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -7353,6 +7409,7 @@
+
[angle &lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt></tt></tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -7369,6 +7426,7 @@
+
[match]<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; [lock [yes|no]]</tt><br>
<tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [open|close]<br>
@@ -7404,6 +7462,7 @@
+
sigma 2.0<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>smooth
@@ -7420,6 +7479,7 @@
+
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
@@ -7436,6 +7496,7 @@
+
angle 45<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>smooth
@@ -7452,6 +7513,7 @@
+
open<br>
smooth close<br>
smooth match<br>
@@ -7577,6 +7639,7 @@
+
</tt>compression method. </p>
<tt> Syntax:<br>
tiff [new|slice] [&lt;filename&gt;] [none|jpeg|packbits|deflate]<br>
diff --git a/ds9/doc/ref/xpa.html b/ds9/doc/ref/xpa.html
index af2de5e..af9c244 100644
--- a/ds9/doc/ref/xpa.html
+++ b/ds9/doc/ref/xpa.html
@@ -218,6 +218,7 @@
+
-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>
@@ -235,6 +236,7 @@
+
-p ds9 3d open<br>
$xpaset -p ds9 3d close<br>
</tt>
@@ -572,6 +574,7 @@
+
[crosshair]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;ref&gt;] [dec
&lt;col&gt;]</tt><br>
@@ -694,6 +697,7 @@
+
[match error &lt;value&gt; degrees|arcmin|arcsec]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[&lt;ref&gt;]
@@ -798,6 +802,7 @@
+
[match function 1and2|1not2|2not1]<br>
</tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[&lt;ref&gt;]
@@ -902,6 +907,7 @@
+
[match return 1and2|1only|2only]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[&lt;ref&gt;]
@@ -1006,6 +1012,7 @@
+
[match unique yes|no]</tt><br>
<tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [&lt;ref&gt;] [maxrows
&lt;number&gt;]</tt><br>
@@ -1060,6 +1067,7 @@
+
[symbol shape </tt></tt><tt><tt>circle point|box
point|diamond point|</tt>cross point|x point|arrow
point|boxcircle point]<br>
@@ -1172,6 +1180,7 @@
+
[update]</tt><br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;ref&gt;] [x
&lt;col&gt;]</tt><br>
@@ -1765,6 +1774,7 @@
+
-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>
@@ -1783,7 +1793,7 @@
</p>
<tt> Syntax: <br>
fits </tt><tt><tt>[new|mask|slice] [&lt;filename&gt;]</tt><tt><br>
- </tt>&nbsp;&nbsp;&nbsp;&nbsp; [width|height|depth|bitpix|type]<br>
+ </tt>&nbsp;&nbsp;&nbsp;&nbsp; [width|height|depth|bitpix]<br>
&nbsp; &nbsp;&nbsp; [size [wcs|wcsa...wcsz]
[fk4|fk5|icrs|galactic|ecliptic] [degrees|arcmin|arcsecs]]<br>
&nbsp;&nbsp;&nbsp; &nbsp;[header [&lt;ext&gt;] [keyword
@@ -1796,7 +1806,6 @@
$xpaget ds9 fits height<br>
$xpaget ds9 fits depth<br>
$xpaget ds9 fits bitpix</tt><br>
- <tt>$xpaget ds9 fits type </tt><br>
<tt><tt>$xpaget ds9 fits size<br>
</tt> $xpaget ds9 fits size wcs fk5 arcmin<br>
$xpaget ds9 fits header # primary<br>
@@ -2304,6 +2313,7 @@
+
</tt>quality (1-100) </p>
<tt> Syntax:<br>
jpeg [new|slice] [&lt;filename&gt;] [1-100]<br>
@@ -2727,6 +2737,7 @@
+
[new name &lt;plotname&gt; line|bar|scatter]</tt></tt></tt></tt></tt></tt></tt></tt><br>
</tt><tt><tt><tt><br>
</tt># create new plot with data from stdin<br>
@@ -2737,6 +2748,7 @@
+
</tt></tt></tt></tt></tt>[new
&lt;title&gt; &lt;xaxis label&gt;
&lt;yaxis label&gt; </tt><tt>xy|xyex|xyey|xyexey</tt><tt>]<br>
@@ -2752,6 +2764,7 @@
+
</tt></tt></tt></tt></tt>[new </tt><tt><tt><tt><tt><tt>name
@@ -2759,6 +2772,7 @@
+
&lt;plotname&gt; </tt></tt></tt></tt>&lt;title&gt;
@@ -2766,6 +2780,7 @@
+
&lt;xaxis label&gt; &lt;yaxis label&gt; </tt><tt>xy|xyex|xyey|xyexey</tt><tt>]<br>
&nbsp;&nbsp;&nbsp;&nbsp; </tt><tt>[new </tt><tt><tt><tt><tt><tt>name
@@ -2774,6 +2789,7 @@
+
&lt;plotname&gt; </tt></tt></tt></tt>line|bar|scatter
@@ -2781,6 +2797,7 @@
+
&lt;title&gt; &lt;xaxis label&gt; &lt;yaxis
label&gt; </tt><tt>xy|xyex|xyey|xyexey</tt><tt>]<br>
</tt><tt><br>
@@ -2795,6 +2812,7 @@
+
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt>[line|bar|scatter]
@@ -2802,6 +2820,7 @@
+
</tt>stdin</tt><tt>]<br>
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -2811,6 +2830,7 @@
+
</tt><tt><tt><tt><tt>[new name &lt;plotname&gt;
stdin</tt><tt>]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><br>
</tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -2821,6 +2841,7 @@
+
</tt></tt></tt></tt></tt></tt></tt>stdin</tt><tt>]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><br>
</tt><tt><br>
</tt><tt><tt># </tt><tt><tt><tt>load data into existing plot from
@@ -2908,6 +2929,7 @@
+
duplicate [#]]<br>
</tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -2985,6 +3007,7 @@
+
</tt>[[&lt;plotname&gt;] stats yes|no]<br>
</tt></tt>&nbsp;&nbsp;&nbsp;&nbsp; </tt>[[&lt;plotname&gt;]
@@ -3061,6 +3084,7 @@
+
list yes|no]<br>
&nbsp;&nbsp;&nbsp;&nbsp; </tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3137,6 +3161,7 @@
+
loadconfig &lt;filename&gt;]<br>
&nbsp;&nbsp;&nbsp;&nbsp; [[&lt;plotname&gt;] saveconfig
&lt;filename&gt;]<br>
@@ -3215,6 +3240,7 @@
+
[[&lt;plotname&gt;] pagesetup orient portrait|landscape]<br>
&nbsp;&nbsp;&nbsp;&nbsp; [[&lt;plotname&gt;] pagesetup
size letter|legal|tabloid|poster|a4]</tt><br>
@@ -3293,6 +3319,7 @@
+
[[&lt;plotname&gt;] print]<br>
&nbsp; &nbsp;&nbsp; [[&lt;plotname&gt;] print
destination printer|file]<br>
@@ -3393,6 +3420,7 @@
+
legend yes|no]<br>
&nbsp;&nbsp;&nbsp;&nbsp; [[&lt;plotname&gt;] legend position
right|left|top|bottom]</tt><br>
@@ -3480,6 +3508,7 @@
+
barmode normal|stacked|aligned|overlap]<br>
<br>
</tt> # configure current dataset<br>
@@ -3559,6 +3588,7 @@
+
shape
circle|square|diamond|plus|splus|scross|triangle|arrow]</tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp; <tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3636,6 +3666,7 @@
+
shape fill yes|no]</tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp; <tt>
</tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3716,6 +3747,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3791,6 +3823,7 @@
+
smooth
step|linear|cubic|quadratic|catrom]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -3869,6 +3902,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -3944,6 +3978,7 @@
+
color
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4022,6 +4057,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4097,6 +4133,7 @@
+
width
&lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4175,6 +4212,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4250,6 +4288,7 @@
+
dash yes|no]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4327,6 +4366,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4402,6 +4442,7 @@
+
error yes|no]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4479,6 +4520,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4554,6 +4596,7 @@
+
error color
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4632,6 +4675,7 @@
+
[[&lt;plotname&gt;]
@@ -4707,6 +4751,7 @@
+
color
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4785,6 +4830,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -4860,6 +4906,7 @@
+
error width
&lt;value&gt;]</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
<tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -4938,6 +4985,7 @@
+
<tt> </tt></tt><tt><tt><tt><tt>[[&lt;plotname&gt;]
@@ -5013,6 +5061,7 @@
+
name
&lt;string&gt;]<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><br>
@@ -5058,6 +5107,7 @@
+
data into existing plot from stdin</tt></tt> <br>
</tt></tt>$cat xy.dat | xpaset ds9 plot data xy<br>
$cat xy.dat | xpaset ds9 plot foo data xy<br>
@@ -5167,6 +5217,7 @@
+
ds9 plot axis x min <br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5243,6 +5294,7 @@
+
ds9 plot axis x max<br>
$xpaget ds9 plot axis x format<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt>$xpaset
@@ -5252,6 +5304,7 @@
+
-p ds9 plot axis x grid yes<br>
$xpaset -p ds9 plot axis x log yes</tt><br>
<tt>$xpaset -p ds9 plot axis x flip yes</tt><tt><br>
@@ -5343,6 +5396,7 @@
+
ds9 plot font numbers size<br>
</tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5419,6 +5473,7 @@
+
ds9 plot font numbers weight<br>
</tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5495,6 +5550,7 @@
+
ds9 plot font numbers slant<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt>$xpaset
@@ -5503,6 +5559,7 @@
+
-p ds9 plot font numbers font times<br>
$xpaset -p ds9 plot font numbers size 12<br>
$xpaset -p ds9 plot font numbers weight bold<br>
@@ -5584,6 +5641,7 @@
+
ds9 plot title xaxis</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5660,6 +5718,7 @@
+
ds9 plot title yaxis</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>$xpaset
@@ -5668,6 +5727,7 @@
+
-p ds9 plot title {This is a Title}<br>
$xpaset -p ds9 plot title x {X Axis}<br>
$xpaset -p ds9 plot title y {Y Axis}<br>
@@ -5763,6 +5823,7 @@
+
ds9 plot dash<br>
</tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5839,6 +5900,7 @@
+
ds9 plot error<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5915,6 +5977,7 @@
+
ds9 plot error
color<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -5992,6 +6055,7 @@
+
ds9 plot error
width<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt><tt>$xpaget
@@ -6069,6 +6133,7 @@
+
ds9 plot name<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>$xpaset
@@ -6145,6 +6210,7 @@
+
-p ds9 plot show yes<br>
$xpaset -p ds9 plot shape circle<br>
</tt><tt><tt>$xpaset -p ds9 plot shape fill no<br>
@@ -6192,6 +6258,7 @@
+
</tt></tt><tt><tt><tt>&lt;dms&gt;</tt></tt></tt><tt><tt><tt><tt>
&lt;arcmin&gt; </tt></tt></tt></tt><tt><tt><tt><tt><tt>&lt;arcsec&gt;<br>
<br>
@@ -6689,6 +6756,7 @@
+
method. </p>
<tt> Syntax: <br>
saveimage </tt><tt>[fits|eps|gif|tiff|jpeg|png] </tt><tt>&lt;filename&gt;<br>
@@ -6922,6 +6990,7 @@
+
[sigma &lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -6939,6 +7008,7 @@
+
[sigmaminor &lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt><tt><tt><tt><tt><tt><tt><tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -6956,6 +7026,7 @@
+
[angle &lt;value&gt;]<br>
</tt></tt></tt></tt></tt></tt></tt></tt><tt>&nbsp;&nbsp;&nbsp;
@@ -6973,6 +7044,7 @@
+
&nbsp;&nbsp; [match]<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; [lock [yes|no]]</tt><br>
<tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [open|close]<br>
@@ -6998,6 +7070,7 @@
+
ds9 smooth sigmaminor<br>
</tt></tt></tt></tt></tt></tt></tt></tt>$xpaget
ds9 smooth lock<br>
@@ -7023,6 +7096,7 @@
+
-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
@@ -7040,6 +7114,7 @@
+
-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
@@ -7057,6 +7132,7 @@
+
-p ds9 smooth angle 45<br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>$xpaset
@@ -7074,6 +7150,7 @@
+
-p ds9 smooth match<br>
$xpaset -p ds9 smooth lock yes</tt><br>
<tt>$xpaset -p ds9 smooth open<br>
@@ -7199,6 +7276,7 @@
+
</tt>compression method. </p>
<tt> Syntax:<br>
tiff [new|slice] [&lt;filename&gt;] [none|jpeg|packbits|deflate]<br>
diff --git a/ds9/library/fits.tcl b/ds9/library/fits.tcl
index 86f02a3..1c5ab0f 100644
--- a/ds9/library/fits.tcl
+++ b/ds9/library/fits.tcl
@@ -138,85 +138,45 @@ proc FitsCmdLoad {param layer mode} {
}
proc ProcessSendFitsCmd {proc id param sock fn} {
- global current
+ global parse
+ set parse(proc) $proc
+ set parse(id) $id
- if {$current(frame) == {}} {
- return
+ fitssend::YY_FLUSH_BUFFER
+ fitssend::yy_scan_string $param
+ fitssend::yyparse
+}
+
+proc FitsSendCmd {which} {
+ global parse
+
+ if {$parse(sock) != {}} {
+ # xpa
+ SaveFitsSocket $which $parse(sock)
+ } elseif {$parse(fn) != {}} {
+ # comm
+ SaveFitsFile $which $parse(fn)
+ $parse(proc) $parse(id) {} $parse(fn)
}
+}
- set which image
+proc FitsSendCmdType {} {
+ global current
- switch -- [string tolower [lindex $param 0]] {
- width {
- $proc $id "[$current(frame) get fits width]\n"
- return
- }
- height {
- $proc $id "[$current(frame) get fits height]\n"
- return
- }
- depth {
- $proc $id "[$current(frame) get fits depth 2]\n"
- return
- }
- bitpix {
- $proc $id "[$current(frame) get fits bitpix]\n"
- return
- }
- size {
- set sys [lindex $param 1]
- set sky [lindex $param 2]
- set format [lindex $param 3]
- if {$sys == {} && $sky == {} && $format == {}} {
- $proc $id "[$current(frame) get fits size]\n"
- } else {
- FixSpec sys sky format image fk5 degrees
- $proc $id "[$current(frame) get fits size $sys $sky $format]\n"
- }
- return
- }
- header {
- switch -- [llength $param] {
- 1 {ProcessSend $proc $id {} $fn {.txt} "[$current(frame) get fits header 1]\n"}
- 2 {ProcessSend $proc $id {} $fn {.txt} "[$current(frame) get fits header [lindex $param 1]]\n"}
- 3 {
- set key [lindex $param 2]
- set key [string trim $key \']
- set key [string trim $key \{]
- set key [string trim $key \}]
- $proc $id "[string trim [$current(frame) get fits header keyword \{$key\}]]\n"
- }
- 4 {
- set key [lindex $param 3]
- set key [string trim $key \']
- set key [string trim $key \{]
- set key [string trim $key \}]
- $proc $id "[string trim [$current(frame) get fits header [lindex $param 1] keyword \{$key\}]]\n"
- }
- }
- return
- }
- type {
- if {[$current(frame) has fits bin]} {
- $proc $id "table\n"
- } else {
- $proc $id "image\n"
- }
- return
- }
- table {set which table}
- image {}
- slice {set which slice}
- resample {set which resample}
+ if {$current(frame) == {}} {
+ return
}
- if {$sock != {}} {
- # xpa
- SaveFitsSocket $which $sock
- } elseif {$fn != {}} {
- # comm
- SaveFitsFile $which $fn
- $proc $id {} $fn
+ if {[$current(frame) has fits bin]} {
+ ProcessSendCmdTxt "table"
+ } elseif {[$current(frame) has fits cube]} {
+ ProcessSendCmdTxt "cube"
+ } elseif {[$current(frame) has fits mosaic]} {
+ ProcessSendCmdTxt "mosaic"
+ } elseif {[$current(frame) has fits]} {
+ ProcessSendCmdTxt "image"
+ } else {
+ return
}
}
diff --git a/ds9/library/source.tcl b/ds9/library/source.tcl
index f71b9e0..26ca935 100644
--- a/ds9/library/source.tcl
+++ b/ds9/library/source.tcl
@@ -258,6 +258,8 @@ source $ds9(root)/library/exportparser.tcl
source $ds9(root)/library/exportlex.tcl
source $ds9(root)/library/fitsparser.tcl
source $ds9(root)/library/fitslex.tcl
+source $ds9(root)/library/fitssendparser.tcl
+source $ds9(root)/library/fitssendlex.tcl
source $ds9(root)/library/frameparser.tcl
source $ds9(root)/library/framelex.tcl
source $ds9(root)/library/framesendparser.tcl
diff --git a/ds9/parsers/fitssendlex.fcl b/ds9/parsers/fitssendlex.fcl
new file mode 100644
index 0000000..3678ff8
--- /dev/null
+++ b/ds9/parsers/fitssendlex.fcl
@@ -0,0 +1,31 @@
+#tab fitssendparser.tab.tcl
+
+%{
+%}
+
+#include defs.fin
+
+%%
+
+bitpix {return $BITPIX_}
+depth {return $DEPTH_}
+gz {return $GZ_}
+header {return $HEADER_}
+height {return $HEIGHT_}
+image {return $IMAGE_}
+keyword {return $KEYWORD_}
+resample {return $RESAMPLE_}
+size {return $SIZE_}
+slice {return $SLICE_}
+table {return $TABLE_}
+type {return $TYPE_}
+width {return $WIDTH_}
+
+#include wcssys.fin
+#include skyframe.fin
+#include rformat.fin
+#include int.fin
+#include string.fin
+#include ws.fin
+
+%%
diff --git a/ds9/parsers/fitssendparser.tac b/ds9/parsers/fitssendparser.tac
new file mode 100644
index 0000000..9d334a9
--- /dev/null
+++ b/ds9/parsers/fitssendparser.tac
@@ -0,0 +1,83 @@
+%{
+%}
+
+#include wcssys.tin
+#include skyframe.tin
+#include rformat.tin
+#include int.tin
+#include string.tin
+
+%start fitssend
+
+%token BITPIX_
+%token DEPTH_
+%token GZ_
+%token HEADER_
+%token HEIGHT_
+%token IMAGE_
+%token KEYWORD_
+%token RESAMPLE_
+%token SIZE_
+%token SLICE_
+%token TABLE_
+%token TYPE_
+%token WIDTH_
+
+%%
+
+#include wcssys.trl
+#include skyframe.trl
+#include rformat.trl
+
+fitssend: WIDTH_ {ProcessSendCmdCurrent "get fits width"}
+ | HEIGHT_ {ProcessSendCmdCurrent "get fits height"}
+ | DEPTH_ {ProcessSendCmdCurrent "get fits depth 2"}
+ | BITPIX_ {ProcessSendCmdCurrent "get fits bitpix"}
+# backward compatibility
+ | TYPE_ {FitsSendCmdType}
+ | SIZE_ size
+ | HEADER_ header
+ | opt gz {FitsSendCmd $1}
+;
+
+size : {ProcessSendCmdCurrent "get fits size"}
+ | wcssys {ProcessSendCmdCurrent "get fits size $1 fk5 degrees"}
+ | skyframe {ProcessSendCmdCurrent "get fits size wcs $1 degrees"}
+ | rformat {ProcessSendCmdCurrent "get fits size wcs fk5 $1"}
+ | wcssys skyframe {ProcessSendCmdCurrent "get fits size $1 $2 degrees"}
+ | wcssys rformat {ProcessSendCmdCurrent "get fits size $1 fk5 $2"}
+ | skyframe rformat {ProcessSendCmdCurrent "get fits size wcs $1 $2"}
+ | wcssys skyframe rformat {ProcessSendCmdCurrent "get fits size $1 $2 $3"}
+ ;
+
+header : {ProcessSendCmdSend {.txt} "get fits header 1"}
+ | INT_ {ProcessSendCmdSend {.txt} "get fits header $1"}
+ | KEYWORD_ STRING_ {ProcessSendCmdCurrent "get fits header keyword \{$2\}"}
+
+# has to be quoted because of common tokens
+ | INT_ KEYWORD_ STRING_ {ProcessSendCmdCurrent "get fits header $1 keyword \{$3\}"}
+ | KEYWORD_ BITPIX_ {ProcessSendCmdCurrent "get fits header keyword \{BITPIX\}"}
+ | INT_ KEYWORD_ BITPIX_ {ProcessSendCmdCurrent "get fits header $1 keyword \{BITPIX\}"}
+ ;
+
+opt : {set _ image}
+ | TABLE_ {set _ table}
+ | IMAGE_ {set _ image}
+ | SLICE_ {set _ slice}
+# backward compatibility
+ | RESAMPLE_ {set _ resample}
+ ;
+
+gz :
+ | GZ_
+ ;
+
+%%
+
+proc fitssend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}