on a third thought: I probably should have rather asked you, what you are aiming at. With my hints above, I was in "equatorial mode". In Alt-Az there is no rotational axis of the rig itself. If you want to derotate the exposures made on an alt-az mount, I think the way to go is by star pattern alignment, i.e. agnostic of any mechanical rotation calculation.