Skip to the navigation links
Last modified: December 2009

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

print_key_names

Context: sl.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

slsh> cr = read_file("arf.fits");
slsh> 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

sl.crates
add_key, delete_key, get_key, get_key_names, get_keyval, key_exists, print_axis_names, print_col_names, set_keyval

Last modified: December 2009