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


next up previous contents index
Next: skycatalog - Constructor Up: viewer - Module Previous: viewerannotations.removelockedfromcurrent - Function


skycatalog - Tool



Package display
Module viewer


Postscript file available

Tool to create and manipulate Viewer tool readable skycatalog tables

include "skycatalog.g"

Constructors
skycatalog Create a skycatalog tool
Functions
addunit Add a unit to a column
done Close this tool
fromascii Create the tool from an ascii file
fromcomponentlist Create the tool from a componentlist
mergecolumns Merge n columns into one
name Return the name of the table
renamecolumn Rename a column
table Return the underling table tool
type Return the tool type



Description

This tool allows the user to create so called skycatalog tables readable by the Viewer tool. This can be done from ASCII tables or componentlists. It also provides a front-end to the table tool to manipulate the structure of the skycatalog.



Example
Here is a small example on how to convert an ascii table ``my.ascii'' to an AIPS++ table ``my.tbl'':

The ASCII file looks like this:

Name No RA DEC NED-ID Max mom0
A A A A A R R
NED 16 19:44:47 -14:46:51 NGC6822ee 24.255 159.8
NED 22 01:04:46 +02:07:04 IC1613e 13.002 328.1

include 'skycatalog.g';
sca := skycatalog('myscat1.tbl');
sca.fromascii(asciifile='my.ascii',hasheader=T,longcol='RA',latcol='DEC');
# cosmetics
sca.mergecolumns("Name No");
sca.done()



Example
An example using a componentlist:
im := imagemaketestimage()
cl := im.findsources()
sca := skycatalog('myscat2.tbl')
sca.fromcomponentlist(cl)
sca.done()
# That's it !




next up previous contents index
Next: skycatalog - Constructor Up: viewer - Module Previous: viewerannotations.removelockedfromcurrent - 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-10-15