Trajectory analysis ( TrajAn )
TrajAn is a Python package for working with trajectory datasets that follow the CF-conventions for trajectories. Trajectory datasets contain position time series from e.g. drifting buoys or output from Lagrangian models.
Installation
conda / mamba (recommended):
mamba install -c conda-forge trajan
pip:
pip install trajan
Quick start
TrajAn exposes a .traj accessor on xarray Datasets:
import xarray as xr
import trajan as ta
# Open a CF-trajectory dataset (e.g. from drifting buoys)
ds = xr.open_dataset('barents.nc')
# Basic map plot — geographic projection is chosen automatically
ds.traj.plot()
# Calculate drifter speed, drop unreliable fixes, and plot coloured by speed
ds = ds.traj.drop_where(ds.traj.time_to_next() < np.timedelta64(5, "m"))
speed = ds.traj.speed()
ds.traj.plot(color=speed)
# Interpolate to a regular 1-hour time grid
dh = ds.traj.gridtime("1h")
# Animate the trajectories
ds.traj.animate().show()
For more examples and the full API reference see the documentation.
Metadata
Release files for trajan 0.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| trajan-0.12.1.tar.gz | 4.3 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trajan-0.12.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.4 MB
Release files / trajan-0.12.1.tar.gz
| Download URL | trajan-0.12.1.tar.gz |
|---|---|
| Size | 4.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88c7097449da48681b11aa6535cd148f1282de70224947616db330f5dbe049e7
|
|
BLAKE2b-256 checksum How to use checksums |
ebe1868fda1fc60f2ee873e8ed1076023391601f2b1887bd91b22e7cd5a59acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / trajan-0.12.1-py3-none-any.whl
| Download URL | trajan-0.12.1-py3-none-any.whl |
|---|---|
| Size | 65.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89d0f98bb915ad419380164676a74c84f2efab13534631b59defa996e6ff90bc
|
|
BLAKE2b-256 checksum How to use checksums |
9677f2882e0b97efc3e625b8dbd5220581fe09f1fad8c0119df8d464b903934e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Security for trajan 0.12.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.