istable -- determine the status of a file
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 .
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
Users should be wary of running ISTABLE in background as the output CL parameters may not be properly updated.