>  Docs Center  >  Libraries  >  Buie  >  SPHREC
Libraries

SPHREC

SPHREC

Name


  sphrec

Purpose (one Line Only)


  Convert from spherical to rectangular coordinates

Description


Category


  Mathematical

Calling Sequence


  sphrec,r,lat,lon,x,y,z

Inputs


  r - distance from origin
  lat - angular distance from x-y plane (radians)
  lon - longitude (angle from x axis) in radians

Optional Input Parameters


Keyword Input Parameters


Outputs


  x - Cartesian x-coordinate (same units as r).
  y - Cartesian y-coordinate (same units as r).
  z - Cartesian z-coordinate (same units as r).

Keyword Output Parameters


Common Blocks


Side Effects


Restrictions


  rank and size of all inputs must match or be scalar.

Procedure


Modification History


  2011/11/29, Written by Marc W. Buie, Southwest Research Institute
                guided by SPTORC.F written by David J. Tholen, and
                sphrec.f written by Marc Buie



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us