Code covered by the BSD License  

Highlights from
Geodetic Toolbox

Geodetic Toolbox

by

 

13 Jun 2007 (Updated )

Toolbox for angle, coordinate and date conversions and transformations. Version 2.97.

[lat,lon,r]=cart2euler(rx,ry,rz)
function [lat,lon,r]=cart2euler(rx,ry,rz)
% CART2EULER  Converts Cartesian coordinate rotations to Euler pole rotation. Used
%   for modelling tectonic plate motion with spherical approximation.
% Version: 2012-07-11
% Useage:  [lat,lon,r]=cart2euler(rx,ry,rz)
% Input :  rx  - rotation about Cartesian X axis (radians; counterclockwise)
%          ry  - rotation about Cartesian X axis (radians; counterclockwise)
%          rz  - rotation about Cartesian X axis (radians; counterclockwise)
% Output:  lat - latitude of Euler pole (radians)
%          lon - longitude of Euler pole (radians)
%          r   - rotation about Euler pole (radians; counterclockwise)

% Copyright (c) 2012, Michael R. Craymer
% All rights reserved.
% Email: mike@craymer.com

if nargin ~= 3
  warning('Incorrect number of input arguments');
  return
end

[lon,lat,r]=cart2sph(rx,ry,rz);

Contact us