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.

[rx,ry,rz]=euler2cart(lat,lon,r)
function [rx,ry,rz]=euler2cart(lat,lon,r)
% EULER2CART  Converts Euler pole rotation to Cartesian coordinate rotations. Used
%   for modelling tectonic plate motion with spherical approximation.
% Version: 2012-07-11
% Useage:  [x,y,z]=euler2cart(lat,lon,w)
% Input:   lat - latitude of Euler pole (radians)
%          lon - longitude of Euler pole (radians)
%          r   - rotation about Euler pole (radians; counterclockwise)
% Output:  rx  - rotation about Cartesian X axis (radians; counterclockwise)
%          ry  - rotation about Cartesian X axis (radians; counterclockwise)
%          rz  - rotation about Cartesian X axis (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

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

Contact us