A high level routine that returns the column number for a quantity in a table file. Unlike the more basic "find_table_column_num" this routine takes only the base name of the table file. In addition, the parameter name is searched for first in a "basename.parlab" file, but if that is not present, then it searches for the quantity in a "basename.params" file. A major workhorse routine used here is find_table_column_num.
% table_column_find --help Usage: table_column_find A AnnAv arg1 - basename of table file (A for A.table) arg2 - parameter name arg3 - run in debug/verbose mode (Y/N) Hence, if a basename of A1 is specified, then we should have a file "A1.table" (that contains the table) and at least one of the files: A1.parlab , A1.params EXAMPLES: % cat A1.table # A sample table file # data 24.539 537.000 366.964 20.979 19.318 18.759 22.105 19.969 19.083 19.847 590.000 393.234 19.724 18.945 18.773 20.355 19.241 18.774 18.473 3667.500 355.787 17.349 16.139 15.100 18.222 16.608 15.825 14.104 64183.000 401.363 12.288 11.944 12.692 12.675 12.065 11.926 % cat A1.param mag_inst Peak AnnAv g r i B V R First, we have only the A1.params file present: % table_column_find A1 g Y Debug flag is ON in table_column_find Table file basename = A1 params file = A1.params parlab file = A1.parlab parameter name = g Enter any key to continue: Column number = 4 4 % table_column_find A1 g N 4 Next, I build a parlabs file. This file is more useful for running plot routines like "xyplotter_auto". % cat A1.parlab mag_inst Instrumental magnitude (EXPTIME-adjusted) Peak Peak raw cound (adu) AnnAv Mean background annulus level (adu) g Gunn g (PS1) r Gunn r (PS1) i Gunn i (PS1) B Trnasformed B V Trnasformed V R Trnasformed R NOTE: I delete my params file, so that only *.parlab is present. % table_column_find A1 g N 4 Here again I find that the g magnitude is in column 4. Finally, we input a bad (unrecognized) name: % table_column_find A1 Peako N 0