| AHELP for CIAO 4.2 | print_key_names |
Context: py.crates |
Synopsis
Display the names of the keywords in a crate.
Syntax
print_key_names(crate)
Description
- crate - input crate
The print_key_names command prints the names of the keywords in the given crate. To retrieve the keywords as an array, use the get_key_names command ("ahelp get_key_names") .
Example
>>> cr = read_file("arf.fits")
>>> print_key_names(cr)
Index Keyname
0) ORIGIN
1) CREATOR
2) REVISION
3) ASCDSVER
4) CHECKSUM
5) DATASUM
6) DATE
...The keywords read from the file "arf.fits" are printed.
Bugs
See the bug pages on the CIAO website for an up-to-date listing of known bugs.
See Also
- py.crates
- add_key, delete_key, get_key, get_key_names, get_keyval, key_exists, print_axis_names, print_col_names, set_keyval
![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)