Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: cscatalog - Constructor Up: conesearch - Module Previous: conesearch.done - Function


cscatalog - Tool



Package vo
Module conesearch


Postscript file available

tool for VO conesearch queries


Description
cscatalog is an tool that facilitates queries to VO conesearch services related to specific catalogs. Currently supported are NVSS, FIRST, and WENSS The services used are hosted by NRAO. The services may be tried by hand at http://www.aoc.nrao.edu/e2e/java/vocone.html

In the following example, the NVSS catalog is queried for all sources overlapping the given image. cscatalog.queryimage returns a componentlist tool that may be used in imager or converted to a skycatalog for display overlaid on an image.

#
# Make an image tool
#
include 'image.g';
im:=image('C1200M24.sub');
# 
# Make a conesearch catalog. This will return a componentlist
#
include 'cscatalog.g';
cs:=cscatalog();
cl:=cs.queryimage(im, 'NVSS');
if(is_fail(cl)) fail;
cs.done();
#
# Skycatalog is a simple format for displaying catalogs
#
include 'skycatalog.g'
sc:=skycatalog(spaste(im.name(), '.sc'));
sc.fromcomponentlist(cl);
if(is_fail(sc)) fail;
#
# Now the image and the skycatalog should be visible in the viewer
#
include 'viewer.g';
dv.gui();

In this example, we have queried for an NVSS image (actually a subsection). The result (after using the viewer to load the image and the skycatalog) is shown in the figure below:


Constructors
cscatalog Construct an cscatalog tool
Functions
done Delete the tool
querydirection Query a catalog for a direction return a componentlist
queryimage Query a catalog for an image




next up previous contents index
Next: cscatalog - Constructor Up: conesearch - Module Previous: conesearch.done - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01