table_mathop.sh
Updated: Nov 9, 2018

Apply a math operation to a table file and add the result as a new column in the table file. script.


% table_mathop.sh --help 

Usage: table_mathop.sh profile_pnts rad expon 0.25 nan plabfile N 
arg1 - table basename name  
arg2 - column name  
arg3 - math operation (log10,expon(X),sqrt,...) 
arg4 - numerical X value, can be none   
arg5 - fake value for absent data (nan) 
arg6 - name of file with new parlab entry 
arg7 - run in debug/verbose mode (Y/N)  


I used this a lot in developing different startegies for plotting surface brightness profiles, but this routine is generally very useful.




Back