Does the column exist in the crate?
- crate - input Crate object
- name - the column name to check for
Returns 1 if the column exists within the input Crate, 0 if
not. The name comparison is case-sensitive.
The crate must be a 'Table', 'ARF', 'PHA', or 'RMF'
crate.
| crate |
a Crate object |
| name |
the column name |
slsh> crate = read_file("table.fits");
slsh> print_col_names(crate);
Index Colname
0) CHANNEL
1) E_MIN
2) E_MAX
slsh> col_exists(crate, "CHANNEL");
1
slsh> col_exists(crate, "channel");
0
slsh>
Check if the column named "CHANNEL" exists in the file
table.fits.
See the
bug pages
on the CIAO website for an up-to-date listing of known bugs.
- sl.crates
-
add_col,
delete_col,
get_col,
get_col_names,
get_colvals,
get_number_cols,
is_arf,
is_pha,
is_rmf,
key_exists,
print_col_names,
set_colvals
|