phys_XYZ introduced as a main function, geometry_calib corrected to deal with reverse x axis in mode linear