Headermath - Do mathematical operations on header keys
Headermath <input.H pars >output.H
keyname
function recognizes header names and a number of functions, written in mathematical equation form
[scalar_float] type of output
maximum size of temporary (in MB) defaults to 10 MB
[0] whether or not to be verbose[1]
[NULL] key indexes to delete
[optional] rotate using (s_x,s_y,g_x,g_y,cmp_x,cmp_y) the coordinates of the dataset (degrees)
Create new keys for a SEP3d dataset
Example: To calculate cmp_x,cmp_y,azimuth key1=cmp_x eqn1=(sx+gx)/2 type1=scalar_float key2=cmp_y eqn2=(sy+gy)/2 type2=scalar_float key3=azimuth eqn3=@ATAN((gy-sy)/(gx-sx)) type3=scalar_float
Supported Functions (specified by @ at begining):
COS | SIN | TAN |
ACOS | ASIN | ATAN |
COSH | SINH | INT |
EXP | LOG | SQRT |
ABS |
the Math manpage,the evaluate_expression manpage
util/headers