Python script to convert between cartesian and polar coordinates

DOI:10.4121/99135db7-940b-481d-8f36-3f26d089c94c.v1
The DOI displayed above is for this specific version of this dataset, which is currently the latest. Newer versions may be published in the future. For a link that will always point to the latest version, please use
DOI: 10.4121/99135db7-940b-481d-8f36-3f26d089c94c

Datacite citation style

Butler, Rick (2025): Python script to convert between cartesian and polar coordinates. Version 1. 4TU.ResearchData. software. https://doi.org/10.4121/99135db7-940b-481d-8f36-3f26d089c94c.v1
Other citation styles (APA, Harvard, MLA, Vancouver, Chicago, IEEE) available at Datacite

Software

To our knowledge no Python package is available for conversion between cartesian and polar coordinates, so we made one for convenience.

The package converts numpy arrays where the last dimension contains x, y or magnitude, orientation coordinates.

When working with cupy arrays, the package performs calculations on the GPU automatically.

History

  • 2025-04-29 first online, published, posted

Publisher

4TU.ResearchData

Format

Python/.py, Packaging/.toml, Requirements/.txt, Documentation/.md

Organizations

TU Delft, Faculty of Mechanical Engineering, Department of Biomechanical Engineering, Medical Process Engineering

To access the source code, use the following command:

git clone https://data.4tu.nl/v3/datasets/30aba7b0-a5e1-4383-8f15-773d59f9c2f7.git "coordinates"

Or download the latest commit as a ZIP.