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


next up previous contents index
Next: catalog.tool - Function Up: catalog - Tool Previous: catalog.rename - Function


catalog.view - Function



Package utility
Module catalog
Tool catalog


View


Synopsis
view(file)


Description
View a file using an appropriate viewer:
  • The Viewer for Images (normally the image.view function) unless told differently via the aipsrc variable catalog.view.image.
  • ghostview for PostScript files.
  • xv for Graphics files.
  • the tablebrowser for non-image tables.
  • The Glish pager for Glish and ascii files.
You can change the viewer for PostScript, Graphics, image Glish, and ascii files via the aipsrc mechanism: e.g. you can add the following to your .aipsrc file
catalog.view.image: aipsview
catalog.view.PostScript:	pageview
catalog.view.Graphics:	/usr/local/bin/xv
catalog.view.Glish:	xterm -e less
catalog.view.ascii:	emacs -r
It is also possible to define these variables as an empty string, which indicates that there is no viewer available for that file type. E.g. it might be possible that a site does not have xv available.



Arguments

file in File to be viewed
    Allowed: String


Returns
Bool


Example
  dc.view("3C273.restored")





next up previous contents index
Next: catalog.tool - Function Up: catalog - Tool Previous: catalog.rename - 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