The cdsclient package is a set of C and shell routines which can be built on Unix stations or PCs running Linux, which once compiled allow to query some databases located at CDS or on mirrors over the network.
The cdsclient package includes two generic query programs:
Specific programs like find2mass or finducac3 are connecting directly to one of the very large surveys available from CDS (a very large survey has 107 or more rows). Using a specific program is faster than the generic vizquery program which has to locate and transport the data via data-base queries; but such progams exist only for the list of enumerated large surveys below.
The tar file is available at http://cdsarc.u-strasbg.fr/ftp/pub/sw/cdsclient.tar.gz or as the file cdsclient.tar.gz in the ftp://cdsarc.u-strasbg.fr/pub/sw/ directory.
tar xvfz cdsclient.tar.gz
(the z option is available in the GNU tar; if your installation
doesn't know the z option, execute
gzip -cd cdsclient.tar.gz | tar xvf -
)
A subdirectory cdsclient-V.vv
(where V.vv represents the
version number) is created; move to that directory
by
cd cdsclient-V.vv
./configure
(on some old versions of System V, you might need to type
sh configure )
If you wish a final installation (executables, libraries, and manpages)
in a non-standard directory tree structure (the default is
/usr/local), specify the preferred prefix, e.g.
./configure --prefix=$HOME
to prepare an installation of executables in your ~/bin
directory — an installation which does not require any
root privilege.
There are several query programs; as a rule, each program can be executed with the -help option to list the basic available options, e.g.
findgsc -help
A -HELP option is also available for details on the column contents for the programs that return data, like findgsc or findpmm
findcat [key... | catalogue_number]
keys are words to look for, e.g. RADIO, Author's name, etc..., or catalogue number e.g. 8059 B/hst J/A+AS/94/519
lscat catalogue_number [catalogue_number...]
catcat [-#] [-fits[.Z|.gz]|-tar[.Z|.gz] catalog[/file]
-#: Specify how many lines from each file (default
all) are to be printed.
-tar: Get catalogue file(s) in TAR format
compressed versions as tar.Z (Unix compress) or tar.gz (gzip)
-fits: Get catalogue file(s) as FITS tables
compressed versions as fits.Z (Unix compress) or fits.gz (gzip)
catalog: catalog designation, e.g.
8059, VIII/59, J/A+AS/94/519 ...
Note: The description file is named ReadMe, which means that short explanations may be displayed with commands
catcat VIII/59/ReadMe
catcat J/A+AS/94/519/ReadMe
Usage:
findgsc [1.2] J2000-center [-r radius_arcmin] [-n max_found_stars]
findgsc [1.2] -g GSCfld[-number] [-n max_found_stars]
findgsc [1.2] - [options]
(centers in stdin)
Described by A. Preite-Martinez & F. Ochsenbein in "Handling & Archiving Data from ground-based Telescopes", Trieste April 21-23, 1993, Eds. M. Albrecht & F. Pasian, ESO Conference and Workshop Proceedings No. 50, p. 199
Example: find out GSC stars within 5' of centers specified in file mycenters which contains:
12 34 12.5 -34 23 12
13 24 57.1 +61 12 34
just execute
findgsc - -r 5 < mycenters
Note: in order to avoid congestions, the size of the file containing the list of centers (mycenters) is limited to a maximum of about 40Mbytes.
Example: find out USNO-A2.0 stars within 3' of centers specified in file mycenters which contains, ordered by increasing distances from specified centers:
12 34 12.5 -34 23 12
13 24 57.1 +61 12 34
just execute
findpmm - -r 3 -sr < mycenters
Note: the program findpmm1 allows to query the USNO-A1.0 catalogue
Example: find_cats my_file -r 0.5 GSC1.2 UCAC2: -r 0.3 2MASS: -lmJ 6,11
to query around the positions (stored in the file my_file) on catalogues:
(Note that the bibcode need not to be complete, full volumes are listed when the page numbers are omitted. The year is not required for the most important journals)
Example: simbib 1990 white dwarf X-ray
retrieves the references simce 1990 dealing about white dwarfs in X-ray domain.
\bibitem{label} ...
into one of the two macros:
\simOK{bibcode} (reference known in Simbad), or
\NOsim{text} (not existing in SIMBAD)
Most programs are using the port 1660 which may be closed (more and more institutes are closing almost all ports except a dozen or so like http, ssh, https, ...). It is possible to use alternative ports or servers via a CDSCLIENT environment variable:
|Version 30-Dec-2009 |For any question or problem, please contact François Ochsenbein ()