CoordinateTransform
✖
CoordinateTransform
Details

- Transformations can be entered in the form oldchart->newchart, where oldchart and newchart are valid chart specifications available from CoordinateChartData.
- Transformations can additionally be given as CoordinateTransformData standard names {oldsys->newsys,metric,dim}, where {oldsys,metric,dim} and {newsys,metric,dim} are valid charts available from CoordinateChartData. The short form in which dimension is omitted may be used.
- CoordinateTransform[t,pt] is effectively equivalent to CoordinateTransformData[t,"Mapping",pt].
- CoordinateTransform automatically threads over arrays of coordinate lists.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (5)Survey of the scope of standard use cases
Give the {x,y,z} values for a point expressed in spherical coordinates:

https://wolfram.com/xid/0h2jrjkc5e-nzq3is

Change a point in prolate spheroidal to spherical coordinates, specifying a parameter for prolate spheroidal coordinates:

https://wolfram.com/xid/0h2jrjkc5e-w7bq0i

The same transformation, expressed more verbosely:

https://wolfram.com/xid/0h2jrjkc5e-w3b32s

Transform coordinates on the sphere of radius r to corresponding values in the stereographic projection:

https://wolfram.com/xid/0h2jrjkc5e-4t0avr

Transform several points at once from cylindrical to Cartesian coordinates:

https://wolfram.com/xid/0h2jrjkc5e-mnihlj

Transform a matrix of points from Cartesian to spherical coordinates:

https://wolfram.com/xid/0h2jrjkc5e-k2x4i6

Applications (1)Sample problems that can be solved with this function
Convert a curve in non-Cartesian coordinates to a corresponding Cartesian expression for purposes of visualization:

https://wolfram.com/xid/0h2jrjkc5e-fsy8xd

https://wolfram.com/xid/0h2jrjkc5e-2vdbnn


https://wolfram.com/xid/0h2jrjkc5e-wj53gl

This curve is approximately 11.2 radii in length:

https://wolfram.com/xid/0h2jrjkc5e-zcz0fh

Properties & Relations (8)Properties of the function, and connections to other functions
CoordinateTransformData[ent,"Mapping",pt] is effectively CoordinateTransform[ent,pt]:

https://wolfram.com/xid/0h2jrjkc5e-eoipnr

CoordinateTransform checks that inputs obey the coordinate range assumptions of charts:

https://wolfram.com/xid/0h2jrjkc5e-k3sv8x


This point violates the coordinate range assumption on the polar angle :

https://wolfram.com/xid/0h2jrjkc5e-cfp8wt

Extract the symbolic transform from CoordinateTransformData to apply it to singular points:

https://wolfram.com/xid/0h2jrjkc5e-dtet27

The reverse mapping is not well-defined at this point:

https://wolfram.com/xid/0h2jrjkc5e-l144qv


CoordinateTransform preserves the shape of arrays:

https://wolfram.com/xid/0h2jrjkc5e-bv0cjq


https://wolfram.com/xid/0h2jrjkc5e-jjfwrv

CoordinateTransform changes the coordinate values of points:

https://wolfram.com/xid/0h2jrjkc5e-8ymbgz

TransformedField changes the coordinate expressions for fields:

https://wolfram.com/xid/0h2jrjkc5e-4naww


https://wolfram.com/xid/0h2jrjkc5e-17wv03


https://wolfram.com/xid/0h2jrjkc5e-yao322

ToPolarCoordinates is a special case of CoordinateTransform:

https://wolfram.com/xid/0h2jrjkc5e-74gc2b


https://wolfram.com/xid/0h2jrjkc5e-6epzk4

FromSphericalCoordinates is a special case of CoordinateTransform:

https://wolfram.com/xid/0h2jrjkc5e-kt2cmc

ToSphericalCoordinates is a special case of CoordinateTransform:

https://wolfram.com/xid/0h2jrjkc5e-ix6ikh

Wolfram Research (2012), CoordinateTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateTransform.html (updated 2015).
Text
Wolfram Research (2012), CoordinateTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateTransform.html (updated 2015).
Wolfram Research (2012), CoordinateTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateTransform.html (updated 2015).
CMS
Wolfram Language. 2012. "CoordinateTransform." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/CoordinateTransform.html.
Wolfram Language. 2012. "CoordinateTransform." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/CoordinateTransform.html.
APA
Wolfram Language. (2012). CoordinateTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoordinateTransform.html
Wolfram Language. (2012). CoordinateTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoordinateTransform.html
BibTeX
@misc{reference.wolfram_2025_coordinatetransform, author="Wolfram Research", title="{CoordinateTransform}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/CoordinateTransform.html}", note=[Accessed: 13-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_coordinatetransform, organization={Wolfram Research}, title={CoordinateTransform}, year={2015}, url={https://reference.wolfram.com/language/ref/CoordinateTransform.html}, note=[Accessed: 13-March-2025
]}