STScI logoSTSDAS Help Pages
istable noao.ptools.digiphot istable

NAME · USAGE · PARAMETERS · DESCRIPTION · EXAMPLES · TIME_REQUIREMENTS
BUGS · SEE_ALSO

NAME

istable -- determine the status of a file

USAGE

istable infile

PARAMETERS

infile
The name of the input file whose status is to be determined.
table = no
An output variable which is "yes" if infile is an STSDAS table and "no" otherwise.
text = no
An output variable which is "yes" if infile is an APPHOT/DAOPHOT text database and "no" otherwise.
other = no
An output variable which is "yes" if infile is neither of the above and "no" otherwise.

DESCRIPTION

ISTABLE is a very simple task which determines whether a specified input file is an STSDAS table, an APPHOT/DAOPHOT text database file or neither of the above. ISTABLE first tries to open the input file as an STSDAS table. If successful ISTABLE returns "yes" in the variable table and "no" in text and other . Otherwise ISTABLE tries to open the input file as an APPHOT/DAOPHOT text database file by checking for the "#K IRAF" keyword. If the check is positive ISTABLE return "yes" in the variable text and "no" in table and other . If the input file is neither an STSDAS table or an APPHOT/DAOPHOT text database ISTABLE returns "yes" in the variable other and "no" in text and table .

EXAMPLES

1. Determine whether the file n4147.mag.1 is an STSDAS table.

   pt> istable n4147.mag
   pt> =istable.table

       ... answer will appear on the screen

TIME REQUIREMENTS

BUGS

Users should be wary of running ISTABLE in background as the output CL parameters may not be properly updated.

SEE ALSO


Search Form · STSDAS

Maintained by the Science Software Group at STScI
This file last updated on 15 Aug 1991