Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | vo | |
Module | conesearch |
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:
cscatalog | Construct an cscatalog tool |
done | Delete the tool |
querydirection | Query a catalog for a direction return a componentlist |
queryimage | Query a catalog for an image |