From 5325349b3343db5cc1e5a29b59c5169fb26a33ea Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 11 Jan 2018 14:51:28 -0500 Subject: update CDS server list --- ds9/doc/ref/command.html | 45 +++++++++++++++++++++++++++++++- ds9/doc/ref/samp.html | 66 ++++++++++++++++++++++++++++++++++++++++++++++- ds9/doc/ref/xpa.html | 66 ++++++++++++++++++++++++++++++++++++++++++++++- ds9/doc/release/r7.6.html | 1 + ds9/library/cat.tcl | 63 +++++++++++++++++++++----------------------- ds9/library/catcds.tcl | 27 +++++++++++++++---- 6 files changed, 226 insertions(+), 42 deletions(-) diff --git a/ds9/doc/ref/command.html b/ds9/doc/ref/command.html index 7266187..b8a3b24 100644 --- a/ds9/doc/ref/command.html +++ b/ds9/doc/ref/command.html @@ -514,6 +514,7 @@ + [crosshair]
        [<ref>] [dec <col>]
@@ -624,6 +625,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -715,6 +717,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -806,6 +809,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -897,6 +901,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -926,7 +931,7 @@         [<ref>] [save <filename>]
        [<ref>] - [server cds|sao|cadc|adac|iucaa|bejing|cambridge|ukirt]
+ [server cds|adac|cadc|cambridge|sao|ukirt|iucaa|bejing|saao]
        [<ref>] [show]
        [<ref>] [size <width> <height> degrees|arcmin|arcsec]
@@ -1044,6 +1049,7 @@ + [update]
        [<ref>] [x <col>]
@@ -1433,6 +1439,7 @@ + [match <coordsys>]
           [lock <coordsys>|none]
@@ -2320,6 +2327,7 @@ + [pan]
            @@ -2454,6 +2462,7 @@ + [crosshair]
            @@ -2588,6 +2597,7 @@ + [open|close]
 
Example:
@@ -2825,6 +2835,7 @@ + [yes|open]
            [no|close]
@@ -2929,6 +2940,7 @@ + duplicate
   @@ -2995,6 +3007,7 @@ +    [<plotname>] stats
     
[<plotname>] @@ -3061,6 +3074,7 @@ + list
     
[<plotname>] @@ -3127,6 +3141,7 @@ + loadconfig <filename>
      [<plotname>] saveconfig <filename>
@@ -3200,6 +3215,7 @@ +    [<plotname>] print
      [<plotname>] print destination [printer|file]
@@ -3275,6 +3291,7 @@ + mode [pointer|zoom]

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

      [<plotname>] @@ -3444,6 +3462,7 @@ + shape fill [yes|no]
      [<plotname>] @@ -3513,6 +3532,7 @@ +     [<plotname>] @@ -3578,6 +3598,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
   @@ -3645,6 +3666,7 @@ +    [<plotname>] @@ -3711,6 +3733,7 @@ + color <value>
    @@ -3778,6 +3801,7 @@ +   [<plotname>] @@ -3843,6 +3867,7 @@ + width <value>
  @@ -3910,6 +3935,7 @@ +     @@ -3976,6 +4002,7 @@ + [<plotname>] @@ -4041,6 +4068,7 @@ + dash [yes|no]
   @@ -4107,6 +4135,7 @@ +    [<plotname>] @@ -4173,6 +4202,7 @@ + error [yes|no]
  @@ -4239,6 +4269,7 @@ +     [<plotname>] @@ -4305,6 +4336,7 @@ + error color <value>
   @@ -4372,6 +4404,7 @@ +    [<plotname>] @@ -4438,6 +4471,7 @@ + error width <value>
    @@ -4505,6 +4539,7 @@ +   [<plotname>] @@ -4570,6 +4605,7 @@ + name <string>
# select current dataset
@@ -5068,6 +5104,7 @@ + <filename> [image|table|slice]

 
Example:
@@ -5309,24 +5346,28 @@ + [sigma <value>]
        + [sigmaminor <value>]
        + [angle <value>]
        + [match]
        [lock [yes|no]]
        @@ -5343,12 +5384,14 @@ + -smooth sigmaminor 2.0
$ds9 + -smooth angle 45
$ds9 -smooth match
diff --git a/ds9/doc/ref/samp.html b/ds9/doc/ref/samp.html index d73a7ed..0d0a32c 100644 --- a/ds9/doc/ref/samp.html +++ b/ds9/doc/ref/samp.html @@ -566,6 +566,7 @@ + [crosshair]

        [<ref>] [dec <col>]
@@ -674,6 +675,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -763,6 +765,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -852,6 +855,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -941,6 +945,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -969,7 +974,7 @@         [<ref>] [save <filename>]
        [<ref>] - [server cds|sao|cadc|adac|iucaa|bejing|cambridge|ukirt]
+ [server cds|adac|cadc|cambridge|sao|ukirt|iucaa|bejing|saao]
        [<ref>] [show]
        [<ref>] [size <width> <height> degrees|arcmin|arcsec]
@@ -1085,6 +1090,7 @@ + [update]
        [<ref>] [x <col>]
@@ -2130,6 +2136,7 @@ + Macros for more information.

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

Syntax:
jpeg [new|slice] [<filename>] [1-100]
@@ -2751,6 +2759,7 @@ + # title, title xaxis, title yaxis, dimension on line 1
     [new [name <plotname>] [line|bar|scatter] <title> <xaxis label> <yaxis @@ -2827,6 +2836,7 @@ + duplicate
     @@ -2892,6 +2902,7 @@ + [<plotname>] stats
    
[<plotname>] @@ -2956,6 +2967,7 @@ + list
    
[<plotname>] @@ -3020,6 +3032,7 @@ + loadconfig <filename>
     [<plotname>] saveconfig <filename>
@@ -3086,6 +3099,7 @@ + [<plotname>] pagesetup orient [portrait|landscape]
     [<plotname>] pagesetup size [letter|legal|tabloid|poster|a4]

@@ -3152,6 +3166,7 @@ + [<plotname>] print
     [<plotname>] print destination [printer|file]
@@ -3240,6 +3255,7 @@ + legend [yes|no]
     [<plotname>] legend position [right|left|top|bottom]

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

     [<plotname>] @@ -3388,6 +3405,7 @@ + shape fill [yes|no]
     [<plotname>] @@ -3456,6 +3474,7 @@ + [<plotname>] @@ -3519,6 +3538,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
     @@ -3585,6 +3605,7 @@ + [<plotname>] @@ -3648,6 +3669,7 @@ + color <value>
     @@ -3714,6 +3736,7 @@ + [<plotname>] @@ -3777,6 +3800,7 @@ + width <value>
     @@ -3843,6 +3867,7 @@ + [<plotname>] @@ -3906,6 +3931,7 @@ + dash [yes|no]
     @@ -3971,6 +3997,7 @@ + [<plotname>] @@ -4034,6 +4061,7 @@ + error [yes|no]
     @@ -4099,6 +4127,7 @@ + [<plotname>] @@ -4162,6 +4191,7 @@ + error color <value>
     @@ -4228,6 +4258,7 @@ + [<plotname>] @@ -4291,6 +4322,7 @@ + color <value>
     @@ -4357,6 +4389,7 @@ + [<plotname>] @@ -4420,6 +4453,7 @@ + error width <value>
     @@ -4486,6 +4520,7 @@ + [<plotname>] @@ -4549,6 +4584,7 @@ + name <string>

@@ -4639,6 +4675,7 @@ + value = ds9.get(string cmd)
plot stats
@@ -4733,6 +4770,7 @@ + axis x auto
plot @@ -4793,6 +4831,7 @@ + axis x min
plot @@ -4853,6 +4892,7 @@ + axis x max
plot @@ -4913,6 +4953,7 @@ + axis x format
plot @@ -4973,6 +5014,7 @@ + legend
plot legend position
@@ -5041,6 +5083,7 @@ + font numbers size
plot @@ -5105,6 +5148,7 @@ + font numbers weight
plot @@ -5169,6 +5213,7 @@ + font numbers slant
plot @@ -5233,6 +5278,7 @@ + title
plot @@ -5297,6 +5343,7 @@ + title x
plot barmode
@@ -5393,6 +5440,7 @@ + dash
plot @@ -5457,6 +5505,7 @@ + error
plot @@ -5521,6 +5570,7 @@ + error color
plot @@ -5585,6 +5635,7 @@ + error width
plot @@ -5649,6 +5700,7 @@ + name
ds9.set(string @@ -5713,6 +5765,7 @@ + cmd)
plot show yes
plot shape circle
@@ -6362,6 +6415,7 @@ + [crosshair]

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

 
Example:
@@ -6578,23 +6633,27 @@ + [sigma <value>]
       + [sigmaminor <value>]
       + [angle <value>]
       + [match]
       [lock [yes|no]]

       [open|close]
@@ -6620,24 +6679,28 @@ + sigma 2.0
smooth + sigmaminor 2.0
smooth + angle 45
smooth + open
smooth close
smooth match
@@ -6753,6 +6816,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 63c3e09..4e21ce9 100644 --- a/ds9/doc/ref/xpa.html +++ b/ds9/doc/ref/xpa.html @@ -205,12 +205,14 @@
$xpaset + -p ds9 3d match
$xpaset -p ds9 3d lock yes
$xpaset + -p ds9 3d open
$xpaset -p ds9 3d close
@@ -535,6 +537,7 @@ + [crosshair]
        [<ref>] [dec <col>]
@@ -647,6 +650,7 @@ + [match error <value> degrees|arcmin|arcsec]
        [<ref>] @@ -740,6 +744,7 @@ + [match function 1and2|1not2|2not1]
        [<ref>] @@ -833,6 +838,7 @@ + [match return 1and2|1only|2only]
        [<ref>] @@ -926,6 +932,7 @@ + [match unique yes|no]
        [<ref>] [maxrows <number>]
@@ -952,7 +959,7 @@         [<ref>] [save <filename>]
        [<ref>] - [server cds|sao|cadc|adac|iucaa|bejing|cambridge|ukirt]
+ [server cds|adac|cadc|cambridge|sao|ukirt|iucaa|bejing|saao]
        [<ref>] [show]
        [<ref>] [size <width> <height> degrees|arcmin|arcsec]
@@ -1072,6 +1079,7 @@ + [update]
        [<ref>] [x <col>]
@@ -1654,6 +1662,7 @@ + -p ds9 export envi foo.hdr foo.bsq little
$xpaset -p ds9 export tiff foo.tiff jpeg
@@ -2169,6 +2178,7 @@ + quality (1-100)

Syntax:
jpeg [new|slice] [<filename>] [1-100]
@@ -2651,6 +2661,7 @@ + # title, title xaxis, title yaxis, dimension on line 1
     [new [name <plotname>] [line|bar|scatter] <title> <xaxis label> <yaxis @@ -2728,6 +2739,7 @@ + duplicate
     @@ -2794,6 +2806,7 @@ + [<plotname>] stats
    
[<plotname>] @@ -2859,6 +2872,7 @@ + list
    
[<plotname>] @@ -2924,6 +2938,7 @@ + loadconfig <filename>
     [<plotname>] saveconfig <filename>
@@ -2991,6 +3006,7 @@ + [<plotname>] pagesetup orient [portrait|landscape]
     [<plotname>] pagesetup size [letter|legal|tabloid|poster|a4]

@@ -3058,6 +3074,7 @@ + [<plotname>] print
     [<plotname>] print destination [printer|file]
@@ -3147,6 +3164,7 @@ + legend [yes|no]
     [<plotname>] legend position [right|left|top|bottom]

@@ -3223,6 +3241,7 @@ + barmode [normal|stacked|aligned|overlap]

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

     [<plotname>] @@ -3357,6 +3377,7 @@ + shape fill [yes|no]
     [<plotname>] @@ -3426,6 +3447,7 @@ + [<plotname>] @@ -3490,6 +3512,7 @@ + smooth [step|linear|cubic|quadratic|catrom]
     @@ -3557,6 +3580,7 @@ + [<plotname>] @@ -3621,6 +3645,7 @@ + color <value>
     @@ -3688,6 +3713,7 @@ + [<plotname>] @@ -3752,6 +3778,7 @@ + width <value>
     @@ -3819,6 +3846,7 @@ + [<plotname>] @@ -3883,6 +3911,7 @@ + dash [yes|no]
     @@ -3949,6 +3978,7 @@ + [<plotname>] @@ -4013,6 +4043,7 @@ + error [yes|no]
     @@ -4079,6 +4110,7 @@ + [<plotname>] @@ -4143,6 +4175,7 @@ + error color <value>
     @@ -4210,6 +4243,7 @@ + [<plotname>] @@ -4274,6 +4308,7 @@ + color <value>
     @@ -4341,6 +4376,7 @@ + [<plotname>] @@ -4405,6 +4441,7 @@ + error width <value>
     @@ -4472,6 +4509,7 @@ + [<plotname>] @@ -4536,6 +4574,7 @@ + name <string>

@@ -4663,6 +4702,7 @@ + ds9 plot axis x min
$xpaget @@ -4728,6 +4768,7 @@ + ds9 plot axis x max
$xpaget ds9 plot axis x format
$xpaget @@ -4790,6 +4831,7 @@ + ds9 plot legend
$xpaget ds9 plot legend position
@@ -4859,6 +4901,7 @@ + ds9 plot font numbers size
$xpaget @@ -4924,6 +4967,7 @@ + ds9 plot font numbers weight
$xpaget @@ -4989,6 +5033,7 @@ + ds9 plot font numbers slant
$xpaget @@ -5054,6 +5099,7 @@ + ds9 plot title
$xpaget @@ -5119,6 +5165,7 @@ + ds9 plot title x
$xpaget ds9 plot barmode
@@ -5213,6 +5260,7 @@ + ds9 plot dash
$xpaget @@ -5278,6 +5326,7 @@ + ds9 plot error
$xpaget @@ -5343,6 +5392,7 @@ + ds9 plot error color
$xpaget @@ -5409,6 +5459,7 @@ + ds9 plot error width
$xpaget @@ -5475,6 +5526,7 @@ + ds9 plot name
$xpaset @@ -5540,6 +5592,7 @@ + -p ds9 plot show yes
$xpaset -p ds9 plot shape circle
$xpaset -p ds9 plot shape fill no
@@ -6057,6 +6110,7 @@ + method.

Syntax:
saveimage
[fits|eps|gif|tiff|jpeg|png] <filename>
@@ -6284,24 +6338,28 @@ + [sigma <value>]
       + [sigmaminor <value>]
       + [angle <value>]
    +    [match]
       [lock [yes|no]]

       [open|close]
@@ -6316,6 +6374,7 @@ + ds9 smooth sigmaminor
$xpaget ds9 smooth lock
@@ -6330,24 +6389,28 @@ + -p ds9 smooth sigma 2.0
$xpaset + -p ds9 smooth sigmaminor 2.0
$xpaset + -p ds9 smooth angle 45
$xpaset + -p ds9 smooth match
$xpaset -p ds9 smooth lock yes

$xpaset -p ds9 smooth open
@@ -6462,6 +6525,7 @@ +
compression method.

Syntax:
tiff [new|slice] [<filename>] [none|jpeg|packbits|deflate]
diff --git a/ds9/doc/release/r7.6.html b/ds9/doc/release/r7.6.html index d91ab71..5b5dab7 100644 --- a/ds9/doc/release/r7.6.html +++ b/ds9/doc/release/r7.6.html @@ -162,6 +162,7 @@
  • 01.02.2018 TCL/TK: updated to version 8.6.8.
  • 01.09.2018 AST: updated to version 8.6.2.
  • 01.10.2018 GUI: up prec of displayed coords for deg and hms.
  • +
  • 01.11.2018 CATALOGS: update CDS server list.
  • xx.xx.2018 RELEASE version 7.6rc
  • diff --git a/ds9/library/cat.tcl b/ds9/library/cat.tcl index 6535884..b3ef628 100644 --- a/ds9/library/cat.tcl +++ b/ds9/library/cat.tcl @@ -36,6 +36,18 @@ proc CATDef {} { set icat(function) 1and2 set icat(unique) 1 + set icat(server,menu) { \ + {{CDS, France} cds} \ + {{Tokyo, Japan} adac} \ + {{CADC, Canada} cadc} \ + {{Cambridge, UK} cambridge} \ + {{CFA, USA} sao} \ + {{UKIRT-Hawaii, USA} ukirt} \ + {{IUCAA, India} iucaa} \ + {{Bejing, China} bejing} \ + {{SAAO, South Africa} saao} \ + } + set icat(def) { \ {- {Database} db} \ {{NED} catned ned ned} \ @@ -744,30 +756,21 @@ proc CATAnalysisMenu {} { } proc CATServerMenu {varname} { + global icat + upvar #0 $varname var global $varname $var(mb) add cascade -label [msgcat::mc {Catalog Server}] \ -menu $var(mb).server menu $var(mb).server - $var(mb).server add radiobutton -label {CDS, Strasbourg France} \ - -variable ${varname}(server) -value cds - $var(mb).server add radiobutton -label {CFA, Boston USA} \ - -variable ${varname}(server) -value sao - $var(mb).server add radiobutton -label {CADC, Canada} \ - -variable ${varname}(server) -value cadc - $var(mb).server add radiobutton -label {ADAC, Tokyo Japan} \ - -variable ${varname}(server) -value adac - $var(mb).server add radiobutton -label {IUCAA, Pune India} \ - -variable ${varname}(server) -value iucaa - $var(mb).server add radiobutton -label {INASAN, Russia} \ - -variable ${varname}(server) -value inasan - $var(mb).server add radiobutton -label {BEJING, China} \ - -variable ${varname}(server) -value bejing - $var(mb).server add radiobutton -label {CAMBRIDGE, UK} \ - -variable ${varname}(server) -value cambridge - $var(mb).server add radiobutton -label {UKIRT, Hawaii USA} \ - -variable ${varname}(server) -value ukirt + + set ll [llength $icat(server,menu)] + for {set ii 0} {$ii<$ll} {incr ii} { + set item [lindex $icat(server,menu) $ii] + $var(mb).server add radiobutton -label [lindex $item 0] \ + -variable ${varname}(server) -value [lindex $item 1] + } } proc CATSortMenu {varname} { @@ -1151,6 +1154,7 @@ proc CATBackup {ch which fdir rdir} { } proc PrefsDialogCatalog {} { + global icat global dprefs set w $dprefs(tab) @@ -1182,22 +1186,13 @@ proc PrefsDialogCatalog {} { sym,font,weight, sym,font,slant {} menu $f.svr.menu - $f.svr.menu add radiobutton -label {CDS} \ - -variable pcat(server) -value cds - $f.svr.menu add radiobutton -label {SAO} \ - -variable pcat(server) -value sao - $f.svr.menu add radiobutton -label {CADC} \ - -variable pcat(server) -value cadc - $f.svr.menu add radiobutton -label {ADAC} \ - -variable pcat(server) -value adac - $f.svr.menu add radiobutton -label {IUCAA} \ - -variable pcat(server) -value iucaa - $f.svr.menu add radiobutton -label {BEJING} \ - -variable pcat(server) -value bejing - $f.svr.menu add radiobutton -label {CAMBRIDGE UK} \ - -variable pcat(server) -value cambridge - $f.svr.menu add radiobutton -label {UKIRT HAWAII} \ - -variable pcat(server) -value ukirt + + set ll [llength $icat(server,menu)] + for {set ii 0} {$ii<$ll} {incr ii} { + set item [lindex $icat(server,menu) $ii] + $f.svr.menu add radiobutton -label [lindex $item 0] \ + -variable pcat(server) -value [lindex $item 1] + } menu $f.shape.menu $f.shape.menu add radiobutton -label [msgcat::mc {Circle}] \ diff --git a/ds9/library/catcds.tcl b/ds9/library/catcds.tcl index 869bb79..a8e3780 100644 --- a/ds9/library/catcds.tcl +++ b/ds9/library/catcds.tcl @@ -217,15 +217,32 @@ proc CATCDSReader {t sock token} { proc CATCDSURL {server} { switch -- $server { + france - cds {return {vizier.u-strasbg.fr}} - sao {return {vizier.cfa.harvard.edu}} - cadc {return {vizier.hia.nrc.ca}} + tokyo - + japan - adac {return {vizier.nao.ac.jp}} - iucaa {return {vizier.iucaa.ernet.in}} - inasan {return {vizier.inasan.ru}} - bejing {return {data.bao.ac.cn}} + canada - + cadc {return {vizier.hia.nrc.ca}} + uk - cambridge {return {vizier.ast.cam.ac.uk}} + usa - + cfa - + harvard - + sao {return {vizier.cfa.harvard.edu}} + hawaii - ukirt {return {www.ukirt.jach.hawaii.edu}} + india - + iucaa {return {vizier.iucaa.in}} + china - + bejing {return {vizier.china-vo.org}} + safrica - + saao {return {viziersaao.chpc.ac.za}} + russia - + inasan { + # no longer active + return {vizier.u-strasbg.fr} + } } } -- cgit v0.12