| AHELP for CIAO 4.5 | read_pha |
Context: crates |
Synopsis
Load a PHA file into a PHACrateDataset.
Syntax
read_pha(filename)
Description
- filename - name of the file
The read_pha command loads the specified PHA file into a PHACrateDataset.
Example
>>> cds = read_pha("pha2")
>>> print(cds)The output of the print command is:
PHA Crate Dataset:
File Name: pha2
PHA Type: 2
Read-Write Mode: rw
Number of Crates: 3
1) Crate Type: <IMAGECrate>
Crate Name: PRIMARY
Crate Number: 1
2) Crate Type: <TABLECrate>
Crate Name: SPECTRUM
Crate Number: 2
Ncols: 13
Nrows: 12
3) Crate Type: <TABLECrate>
Crate Name: REGION
Crate Number: 3
Ncols: 10
Nrows: 36
In this example the PHA file is a type II grating dataset and was obtained from TGCat.
Bugs
See the bug pages on the CIAO website for an up-to-date listing of known bugs.
Refer to the CIAO bug pages for an up-to-date listing of known issues.

![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)