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.whatisfull - Function Up: catalog - Tool Previous: catalog.availabletypes - Function


catalog.whatis - Function



Package utility
Module catalog
Tool catalog


Determine what a particular file is


Synopsis
whatis(file, dir)


Description
Analyzes the file characteristics to determine what it contains:
  • Tables are easily recognized and the type (e.g. Measurement Set, Image, Calibration) determined,
  • Directories, Postscript, Graphics, Glish, and FITS files are recognized,
  • Other files may give mixed results, either showing up as Regular File or ascii.
Note that symlinks are normally resolved, so only if the file linked to does not exist, the type will be 'symbolic link'..



Arguments

file in Name of file to be classified
    Allowed: Any string
    Default: '.'
dir in Directory of the file
    Allowed: Any string
    Default: '.'


Returns
Record containing classification information


Example
  include "catalog.g";
  dc.whatis("3C273XC1.MS")
# [type=Measurement Set, istable=T, size=0]





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