-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
824 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,46 @@ | ||
<!--[metadata] | ||
title = "Air Traffic Data" | ||
tags = ["2d", "3d", "map", "crs"] | ||
description = "Display aircraft flight trajectories" | ||
build_args = ["--jpeg-quality=50"] | ||
description = "Display aircraft traffic data" | ||
--> | ||
|
||
|
||
Display air traffic data kindly provided by [INVOLI](https://www.involi.com). | ||
|
||
<picture> | ||
<img src="https://static.rerun.io/air_traffic_data/4a68b46a404c4f9e3c082f57a8a8ed4bf5b9b236/full.png" alt=""> | ||
<source media="(max-width: 480px)" srcset="https://static.rerun.io/air_traffic_data/4a68b46a404c4f9e3c082f57a8a8ed4bf5b9b236/480w.png"> | ||
<source media="(max-width: 768px)" srcset="https://static.rerun.io/air_traffic_data/4a68b46a404c4f9e3c082f57a8a8ed4bf5b9b236/768w.png"> | ||
<source media="(max-width: 1024px)" srcset="https://static.rerun.io/air_traffic_data/4a68b46a404c4f9e3c082f57a8a8ed4bf5b9b236/1024w.png"> | ||
<source media="(max-width: 1200px)" srcset="https://static.rerun.io/air_traffic_data/4a68b46a404c4f9e3c082f57a8a8ed4bf5b9b236/1200w.png"> | ||
</picture> | ||
|
||
```bash | ||
# install dependencies | ||
pip install -r examples/python/air_traffic_data/requirements.txt | ||
This example demonstrates multiple aspects of the Rerun viewer: | ||
|
||
- Use of the [map view](https://rerun.io/docs/reference/types/views/map_view). | ||
- Use of [pyproj](https://pyproj4.github.io/pyproj/stable/) to transform geospatial data from one coordinate system to another. | ||
- Use [GeoPandas](https://geopandas.org/en/stable/) to load geospatial data into a 3D view. | ||
- Use [Polars]https://pola.rs) to batch data to be sent via [`rr.send_columns()`](https://rerun.io/docs/howto/logging/send-columns) (use `--batch`). | ||
|
||
# run with demo dataset | ||
python examples/python/air_traffic_data/main.py --dataset 10min | ||
|
||
# run with custom dataset | ||
python examples/python/air_traffic_data/main.py --dir path/to/my/dataset/directory | ||
## Run the code | ||
|
||
# more options | ||
python examples/python/air_traffic_data/main.py --help | ||
To run this example, make sure you have Python version at least 3.9, the Rerun repository checked out and the latest SDK installed: | ||
```bash | ||
pip install --upgrade rerun-sdk # install the latest Rerun SDK | ||
git clone git@github.com:rerun-io/rerun.git # Clone the repository | ||
cd rerun | ||
git checkout latest # Check out the commit matching the latest SDK release | ||
``` | ||
Install the necessary libraries specified in the requirements file: | ||
```bash | ||
pip install -e examples/python/air_traffic_data | ||
``` | ||
To experiment with the provided example, simply execute the main Python script: | ||
```bash | ||
python -m air_traffic_data | ||
``` | ||
If you wish to customize it, explore additional features, or save it use the CLI with the `--help` option for guidance: | ||
```bash | ||
python -m air_traffic_data --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.