pymap3d is a pure Python library (with no external prerequisites) providing various coordinate conversions. It follows the conventions of several popular Matlab routines for geospatial and attitude transformations. The current version is 3.2.0, and it maintains an active development status with regular updates.
pip install pymap3dVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates core coordinate conversion functionalities. It converts geodetic coordinates to ECEF, then converts ECEF back to geodetic to show round-trip consistency. Finally, it illustrates conversion from ECEF to ECI, highlighting the need for a specific timestamp.
Replace `pymap3d.aer.aer2enu(...)` with `pymap3d.aer2enu(...)` and similarly for other functions.
Review existing code using `aer2enu` and adjust expected altitude signs if upgrading from a version older than 3.1.0.
Always consult the function's docstring or the official documentation to confirm the exact input arguments, units, and output format. Do not assume compatibility with other libraries without verification.
Ensure that if `geodetic2ecef` is called without a `height` argument, the implicit `0.0` meter height is the desired behavior for your application. Explicitly pass `height=...` if a different default is needed.
Install the library using pip: `pip install pymap3d`
Ensure you are using a recent version of `pymap3d` and import specific functions directly from their submodules, e.g., `from pymap3d.vincenty import vdist` if `vincenty` functions are still in a dedicated submodule, or directly from `pymap3d` if they've been elevated. For most modern usage, functions are directly available after `import pymap3d as pm` like `pm.geodetic2ecef`.
Install NumPy in your environment (`pip install numpy`) to enable `pymap3d` to handle array-like inputs, or ensure all inputs are scalar Python numbers if you intend to use `pymap3d` without NumPy. If using non-scalar data without NumPy, process each scalar value individually, perhaps using a list comprehension.
Provide the missing `alt` (altitude) argument, ensuring all three coordinate values are passed: `pymap3d.geodetic2ecef(lat, lon, alt)`
Use the correct function name: `pymap3d.ecef2geodetic(x, y, z)`
No dependency data recorded yet.