From 6f1bf3ef346df2faaef586547e75c1152bf42ff2 Mon Sep 17 00:00:00 2001 From: William Joye Date: Tue, 22 May 2018 14:38:35 -0400 Subject: update ds9 parsers --- ds9/doc/ref/command.html | 58 +++++++++++++++++++++++++++++++---- ds9/doc/ref/samp.html | 73 +++++++++++++++++++++++++++++++++++++++++--- ds9/doc/ref/xpa.html | 77 +++++++++++++++++++++++++++++++++++++++++++---- ds9/parsers/catparser.tac | 1 + 4 files changed, 193 insertions(+), 16 deletions(-) diff --git a/ds9/doc/ref/command.html b/ds9/doc/ref/command.html index 8bb00e6..1769bf9 100644 --- a/ds9/doc/ref/command.html +++ b/ds9/doc/ref/command.html @@ -416,7 +416,9 @@         [import sb|tsv <filename>]

-         [<ref>] [allcols]
+
        [<ref>] + [<ra> <dec> <coordsys>]
+
        [<ref>] [allcols]
        [<ref>] [allrows]
 
       [<ref>] @@ -424,9 +426,8 @@         [<ref>] [clear]
        [<ref>] [close]
-         [<ref>] - [coordinate <ra> <dec> <coordsys>]
-
        [<ref>] +         [<ref>] + @@ -632,6 +633,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -726,6 +728,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -820,6 +823,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -914,6 +918,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -1064,6 +1069,7 @@ + [update]

        [<ref>] [x <col>]
@@ -1079,12 +1085,12 @@ $ds9 -catalog load foo.xml
$ds9 -catalog import tsv foo.tsv

-
$ds9 -catalog allrows
+
$ds9 -catalog 202.48 47.21 fk5
+
$ds9 -catalog allrows
$ds9 -catalog allcols
$ds9 -catalog cancel
$ds9 -catalog clear
$ds9 -catalog close
-
$ds9 -catalog coordinate 202.48 47.21 fk5
$ds9 -catalog crosshair
$ds9 -catalog dec DEC
$ds9 -catalog edit yes
@@ -1192,6 +1198,7 @@           [size]
          [ticks]
          + [match]
          [lock [yes|no]]

@@ -1453,6 +1460,7 @@ + [match <coordsys>]
           [lock <coordsys>|none]

@@ -1609,6 +1617,7 @@ Example:
$ds9 -envi foo.hdr
$ds9 + -envi foo.hdr foo.bsq

exit
@@ -2343,6 +2352,7 @@ + [pan]
            @@ -2480,6 +2490,7 @@ + [crosshair]
            @@ -2617,6 +2628,7 @@ + [open|close]
 
Example:
@@ -2857,6 +2869,7 @@ + [yes|open]
            [no|close]
@@ -2964,6 +2977,7 @@ + duplicate
   @@ -3033,6 +3047,7 @@ +    [<plotname>] stats
     
[<plotname>] @@ -3102,6 +3117,7 @@ + list
     
[<plotname>] @@ -3171,6 +3187,7 @@ + loadconfig <filename>
      [<plotname>] saveconfig <filename>
@@ -3247,6 +3264,7 @@ +    [<plotname>] print
      [<plotname>] print destination [printer|file]
@@ -3325,6 +3343,7 @@ + mode [pointer|zoom]

# configure graph
@@ -3430,6 +3449,7 @@ + shape [circle|square|diamond|plus|splus|scross|triangle|arrow]

      [<plotname>] @@ -3500,6 +3520,7 @@ + shape fill [yes|no]
      [<plotname>] @@ -3572,6 +3593,7 @@ +     [<plotname>] @@ -3640,6 +3662,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
   @@ -3710,6 +3733,7 @@ +    [<plotname>] @@ -3779,6 +3803,7 @@ + color <value>
    @@ -3849,6 +3874,7 @@ +   [<plotname>] @@ -3917,6 +3943,7 @@ + width <value>
  @@ -3987,6 +4014,7 @@ +     @@ -4056,6 +4084,7 @@ + [<plotname>] @@ -4124,6 +4153,7 @@ + dash [yes|no]
   @@ -4193,6 +4223,7 @@ +    [<plotname>] @@ -4262,6 +4293,7 @@ + error [yes|no]
  @@ -4331,6 +4363,7 @@ +     [<plotname>] @@ -4400,6 +4433,7 @@ + error color <value>
   @@ -4470,6 +4504,7 @@ +    [<plotname>] @@ -4539,6 +4574,7 @@ + error width <value>
    @@ -4609,6 +4645,7 @@ +   [<plotname>] @@ -4677,6 +4714,7 @@ + name <string>
# select current dataset
@@ -4789,6 +4827,7 @@ Syntax:
-precision <linear>
<degree> <hms> + <dms> <arcmin> <arcsec>

@@ -5189,6 +5228,7 @@ + <filename> [image|table|slice]

 
Example:
@@ -5430,6 +5470,7 @@ + [sigma <value>]
        @@ -5439,6 +5480,7 @@ + [sigmaminor <value>]
        @@ -5448,6 +5490,7 @@ + [angle <value>]
        @@ -5457,6 +5500,7 @@ + [match]
        [lock [yes|no]]
        @@ -5476,6 +5520,7 @@ + -smooth sigmaminor 2.0
$ds9 @@ -5485,6 +5530,7 @@ + -smooth angle 45
$ds9 -smooth match
diff --git a/ds9/doc/ref/samp.html b/ds9/doc/ref/samp.html index 5d81b42..742c7ea 100644 --- a/ds9/doc/ref/samp.html +++ b/ds9/doc/ref/samp.html @@ -470,7 +470,9 @@         [import sb|tsv <filename>]

-
        [<ref>] [allcols]
+
        [<ref>] + [<ra> <dec> <coordsys>]
+
        [<ref>] [allcols]
        [<ref>] [allrows]
 
       [<ref>] @@ -478,9 +480,8 @@         [<ref>] [clear]
        [<ref>] [close]
-         [<ref>] - [coordinate <ra> <dec> <coordsys>]
-
        [<ref>] +         [<ref>] + @@ -682,6 +683,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -774,6 +776,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -866,6 +869,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -958,6 +962,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -1105,6 +1110,7 @@ + [update]

        [<ref>] [x <col>]
@@ -2151,6 +2157,7 @@ + Macros for more information.

Syntax:
iexam []
@@ -2268,6 +2275,7 @@ +
quality (1-100)

Syntax:
jpeg [new|slice] [<filename>] [1-100]
@@ -2779,6 +2787,7 @@ + # title, title xaxis, title yaxis, dimension on line 1
     [new [name <plotname>] [line|bar|scatter] <title> <xaxis label> <yaxis @@ -2858,6 +2867,7 @@ + duplicate
     @@ -2926,6 +2936,7 @@ + [<plotname>] stats
    
[<plotname>] @@ -2993,6 +3004,7 @@ + list
    
[<plotname>] @@ -3060,6 +3072,7 @@ + loadconfig <filename>
     [<plotname>] saveconfig <filename>
@@ -3129,6 +3142,7 @@ + [<plotname>] pagesetup orient [portrait|landscape]
     [<plotname>] pagesetup size [letter|legal|tabloid|poster|a4]

@@ -3198,6 +3212,7 @@ + [<plotname>] print
     [<plotname>] print destination [printer|file]
@@ -3289,6 +3304,7 @@ + legend [yes|no]
     [<plotname>] legend position [right|left|top|bottom]

@@ -3375,6 +3391,7 @@ + shape [circle|square|diamond|plus|splus|scross|triangle|arrow]

     [<plotname>] @@ -3443,6 +3460,7 @@ + shape fill [yes|no]
     [<plotname>] @@ -3514,6 +3532,7 @@ + [<plotname>] @@ -3580,6 +3599,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
     @@ -3649,6 +3669,7 @@ + [<plotname>] @@ -3715,6 +3736,7 @@ + color <value>
     @@ -3784,6 +3806,7 @@ + [<plotname>] @@ -3850,6 +3873,7 @@ + width <value>
     @@ -3919,6 +3943,7 @@ + [<plotname>] @@ -3985,6 +4010,7 @@ + dash [yes|no]
     @@ -4053,6 +4079,7 @@ + [<plotname>] @@ -4119,6 +4146,7 @@ + error [yes|no]
     @@ -4187,6 +4215,7 @@ + [<plotname>] @@ -4253,6 +4282,7 @@ + error color <value>
     @@ -4322,6 +4352,7 @@ + [<plotname>] @@ -4388,6 +4419,7 @@ + color <value>
     @@ -4457,6 +4489,7 @@ + [<plotname>] @@ -4523,6 +4556,7 @@ + error width <value>
     @@ -4592,6 +4626,7 @@ + [<plotname>] @@ -4658,6 +4693,7 @@ + name <string>

@@ -4751,6 +4787,7 @@ + value = ds9.get(string cmd)
plot stats
@@ -4848,6 +4885,7 @@ + axis x auto
plot @@ -4911,6 +4949,7 @@ + axis x min
plot @@ -4974,6 +5013,7 @@ + axis x max
plot @@ -5037,6 +5077,7 @@ + axis x format
plot @@ -5100,6 +5141,7 @@ + legend
plot legend position
@@ -5171,6 +5213,7 @@ + font numbers size
plot @@ -5238,6 +5281,7 @@ + font numbers weight
plot @@ -5305,6 +5349,7 @@ + font numbers slant
plot @@ -5372,6 +5417,7 @@ + title
plot @@ -5439,6 +5485,7 @@ + title x
plot barmode
@@ -5538,6 +5585,7 @@ + dash
plot @@ -5605,6 +5653,7 @@ + error
plot @@ -5672,6 +5721,7 @@ + error color
plot @@ -5739,6 +5789,7 @@ + error width
plot @@ -5806,6 +5857,7 @@ + name
ds9.set(string @@ -5873,6 +5925,7 @@ + cmd)
plot show yes
plot shape circle
@@ -5915,6 +5968,7 @@ Syntax:
precision <linear>
<degree> <hms> + <dms> <arcmin> <arcsec>

@@ -6533,6 +6587,7 @@ + [crosshair]

        [<ref>] [export sb|tsv <filename>]
@@ -6642,6 +6697,7 @@ + [update]

 
Example:
@@ -6755,6 +6811,7 @@ + [sigma <value>]
       @@ -6763,6 +6820,7 @@ + [sigmaminor <value>]
       @@ -6772,6 +6830,7 @@ + [angle <value>]
       @@ -6781,6 +6840,7 @@ + [match]
       [lock [yes|no]]

       [open|close]
@@ -6809,6 +6869,7 @@ + sigma 2.0
smooth @@ -6818,6 +6879,7 @@ + sigmaminor 2.0
smooth @@ -6827,6 +6889,7 @@ + angle 45
smooth @@ -6836,6 +6899,7 @@ + open
smooth close
smooth match
@@ -6954,6 +7018,7 @@ +
compression method.

Syntax:
tiff [new|slice] [<filename>] [none|jpeg|packbits|deflate]
diff --git a/ds9/doc/ref/xpa.html b/ds9/doc/ref/xpa.html index e8d4a12..f4aca85 100644 --- a/ds9/doc/ref/xpa.html +++ b/ds9/doc/ref/xpa.html @@ -209,6 +209,7 @@ + -p ds9 3d match

$xpaset -p ds9 3d lock yes
@@ -218,6 +219,7 @@ + -p ds9 3d open
$xpaset -p ds9 3d close
@@ -441,7 +443,9 @@         [import sb|tsv <filename>]

-
        [<ref>] [allcols]
+
        [<ref>] + [<ra> <dec> <coordsys>]
+
        [<ref>] [allcols]
        [<ref>] [allrows]
 
       [<ref>] @@ -449,9 +453,8 @@         [<ref>] [clear]
        [<ref>] [close]
-         [<ref>] - [coordinate <ra> <dec> <coordsys>]
-
        [<ref>] +         [<ref>] + @@ -661,6 +664,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -757,6 +761,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -853,6 +858,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -949,6 +955,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -1098,6 +1105,7 @@ + [update]

        [<ref>] [x <col>]
@@ -1116,12 +1124,12 @@
$xpaset -p ds9 catalog load foo.xml
$xpaset -p ds9 catalog import tsv foo.tsv

-
$xpaset -p ds9 catalog allrows
+
$xpaset -p ds9 catalog 202.48 47.21 fk5
+
$xpaset -p ds9 catalog allrows
$xpaset -p ds9 catalog allcols
$xpaset -p ds9 catalog cancel
$xpaset -p ds9 catalog clear
$xpaset -p ds9 catalog close
-
$xpaset -p ds9 catalog coordinate 202.48 47.21 fk5
$xpaset -p ds9 catalog crosshair
$xpaset -p ds9 catalog dec DEC
$xpaset -p ds9 catalog edit yes
@@ -1683,6 +1691,7 @@ + -p ds9 export envi foo.hdr foo.bsq little

$xpaset -p ds9 export tiff foo.tiff jpeg

@@ -2201,6 +2210,7 @@ + quality (1-100)

Syntax:
jpeg [new|slice] [<filename>] [1-100]
@@ -2687,6 +2697,7 @@ + # title, title xaxis, title yaxis, dimension on line 1
     [new [name <plotname>] [line|bar|scatter] <title> <xaxis label> <yaxis @@ -2767,6 +2778,7 @@ + duplicate
     @@ -2836,6 +2848,7 @@ + [<plotname>] stats
    
[<plotname>] @@ -2904,6 +2917,7 @@ + list
    
[<plotname>] @@ -2972,6 +2986,7 @@ + loadconfig <filename>
     [<plotname>] saveconfig <filename>
@@ -3042,6 +3057,7 @@ + [<plotname>] pagesetup orient [portrait|landscape]
     [<plotname>] pagesetup size [letter|legal|tabloid|poster|a4]

@@ -3112,6 +3128,7 @@ + [<plotname>] print
     [<plotname>] print destination [printer|file]
@@ -3204,6 +3221,7 @@ + legend [yes|no]
     [<plotname>] legend position [right|left|top|bottom]

@@ -3283,6 +3301,7 @@ + barmode [normal|stacked|aligned|overlap]

# configure current dataset
@@ -3354,6 +3373,7 @@ + shape [circle|square|diamond|plus|splus|scross|triangle|arrow]

     [<plotname>] @@ -3423,6 +3443,7 @@ + shape fill [yes|no]
     [<plotname>] @@ -3495,6 +3516,7 @@ + [<plotname>] @@ -3562,6 +3584,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
     @@ -3632,6 +3655,7 @@ + [<plotname>] @@ -3699,6 +3723,7 @@ + color <value>
     @@ -3769,6 +3794,7 @@ + [<plotname>] @@ -3836,6 +3862,7 @@ + width <value>
     @@ -3906,6 +3933,7 @@ + [<plotname>] @@ -3973,6 +4001,7 @@ + dash [yes|no]
     @@ -4042,6 +4071,7 @@ + [<plotname>] @@ -4109,6 +4139,7 @@ + error [yes|no]
     @@ -4178,6 +4209,7 @@ + [<plotname>] @@ -4245,6 +4277,7 @@ + error color <value>
     @@ -4315,6 +4348,7 @@ + [<plotname>] @@ -4382,6 +4416,7 @@ + color <value>
     @@ -4452,6 +4487,7 @@ + [<plotname>] @@ -4519,6 +4555,7 @@ + error width <value>
     @@ -4589,6 +4626,7 @@ + [<plotname>] @@ -4656,6 +4694,7 @@ + name <string>

@@ -4786,6 +4825,7 @@ + ds9 plot axis x min
$xpaget @@ -4854,6 +4894,7 @@ + ds9 plot axis x max
$xpaget ds9 plot axis x format
$xpaget @@ -4919,6 +4960,7 @@ + ds9 plot legend
$xpaget ds9 plot legend position
@@ -4991,6 +5033,7 @@ + ds9 plot font numbers size
$xpaget @@ -5059,6 +5102,7 @@ + ds9 plot font numbers weight
$xpaget @@ -5127,6 +5171,7 @@ + ds9 plot font numbers slant
$xpaget @@ -5195,6 +5240,7 @@ + ds9 plot title
$xpaget @@ -5263,6 +5309,7 @@ + ds9 plot title x
$xpaget ds9 plot barmode
@@ -5360,6 +5407,7 @@ + ds9 plot dash
$xpaget @@ -5428,6 +5476,7 @@ + ds9 plot error
$xpaget @@ -5496,6 +5545,7 @@ + ds9 plot error color
$xpaget @@ -5565,6 +5615,7 @@ + ds9 plot error width
$xpaget @@ -5634,6 +5685,7 @@ + ds9 plot name
$xpaset @@ -5702,6 +5754,7 @@ + -p ds9 plot show yes
$xpaset -p ds9 plot shape circle
$xpaset -p ds9 plot shape fill no
@@ -5741,6 +5794,7 @@ Syntax:
precision <linear>
<degree> <hms> + <dms> <arcmin> <arcsec>

@@ -6234,6 +6288,7 @@ + method.

Syntax:
saveimage
[fits|eps|gif|tiff|jpeg|png] <filename>
@@ -6458,6 +6513,7 @@ + [sigma <value>]
       @@ -6467,6 +6523,7 @@ + [sigmaminor <value>]
       @@ -6476,6 +6533,7 @@ + [angle <value>]
    @@ -6485,6 +6543,7 @@ +    [match]
       [lock [yes|no]]

       [open|close]
@@ -6502,6 +6561,7 @@ + ds9 smooth sigmaminor
$xpaget ds9 smooth lock
@@ -6519,6 +6579,7 @@ + -p ds9 smooth sigma 2.0
$xpaset @@ -6528,6 +6589,7 @@ + -p ds9 smooth sigmaminor 2.0
$xpaset @@ -6537,6 +6599,7 @@ + -p ds9 smooth angle 45
$xpaset @@ -6546,6 +6609,7 @@ + -p ds9 smooth match
$xpaset -p ds9 smooth lock yes

$xpaset -p ds9 smooth open
@@ -6663,6 +6727,7 @@ +
compression method.

Syntax:
tiff [new|slice] [<filename>] [none|jpeg|packbits|deflate]
diff --git a/ds9/parsers/catparser.tac b/ds9/parsers/catparser.tac index 0cebfae..22f651e 100644 --- a/ds9/parsers/catparser.tac +++ b/ds9/parsers/catparser.tac @@ -128,6 +128,7 @@ catCmd : coordinate | CANCEL_ {global cvarname; ARCancel $cvarname} | CLEAR_ {global cvarname; CATOff $cvarname} | CLOSE_ {global cvarname; CATDestroy $cvarname} +# backward compatibilty | COORDINATE_ coordinate | CROSSHAIR_ {global cvarname; CATCrosshair $cvarname} | EDIT_ yesno {CatalogCmdEdit $2} -- cgit v0.12