Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/is_pha.sl.html
AHELP for CIAO 4.2

is_pha

Context: sl.crates

Synopsis

Determine if the crate contains a PHA file.

Syntax

is_pha(crate);

Description

  • crate - input crate

The is_pha command returns "1" if the crate contains a PHA file (type I or II) and "0" if not.

Example

slsh> cr = read_pha("src.pi");
slsh> is_pha(cr);
1

A file is read into the crate "cr", then is_pha is used to confirm it is a PHA file.

Bugs

See the bug pages on the CIAO website for an up-to-date listing of known bugs.

See Also

sl.crates
col_exists, is_arf, is_rmf, is_virtual, key_exists, read_pha, write_pha

Last modified: December 2009