A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Private Jet Flights

Track and quantify emissions of private jets.
https://github.com/jorgecardleitao/private-jets

Category: Emissions
Sub Category: Emission Observation and Modeling

Keywords

private-jets

Last synced: about 5 hours ago
JSON representation

Repository metadata

Track and quantify emissions of private jets

README.md

Private jet flights

Test
Coverage

This repository contains a CLI application to analyze flights of private jets.

It is supported by an S3 Blob storage container for caching data, thereby
reducing its impact to https://adsbexchange.com/.

It resulted in a scientific publication in Communications Earth & Environment paper,
and a bunch of press about it:

How to use the data

The data is available in an https/s3 endpoint. See analysis.sql for an example of how to use it (in duckdb SQL).

pip install duckdb

python3 run_sql.py analysis.sql

See methodology.md for details of the full methodology and where data is available for consumption at different levels
of aggregations.

Contributing

Risk and impact

This code performs API calls to https://adsbexchange.com/,
a production website of a company.

Use critical thinking when using this code and how it impacts them.

We strongly recommend that if you plan to perform large scale analysis (e.g. in time or aircrafts),
that you reach out via an issue before, so that we can work together
to cache all hits to https://adsbexchange.com/
on an horizontally scaled remote storage and therefore remove its impact to adsbexchange.com
of future calls.

All cached data is available on S3 blob storage at endpoint

https://private-jets.fra1.digitaloceanspaces.com

and has anonymous and public read permissions. See methodology.md for details.

How to use

  1. Install Rust
  2. run cargo run --features="build-binary" --release --bin etl_aircrafts
  3. open database/aircraft/db/date=<today date>/data.csv

Step 2. has an optional arguments, --access-key, --secret-access-key, specifying
credentials to write to the remote storate, as opposed to disk.

In general:

  • Use the default parameters when creating ad-hoc stories
  • Use --access-key when improving the database with new data.

As of today, the flag --access-key is only available to the owner,
as writing to the blob storage must be done through a controlled code base that preserves data integrity.

Examples:

# Create new snapshot of database of all aircrafts
cargo run --features="build-binary" --release --bin etl_aircrafts -- --access-key=DO00AUDGL32QLFKV8CEP --secret-access-key=$(cat secrets.txt)

# Build database of positions `[2019, 2024]`
cargo run --features="build-binary" --release --bin etl_positions -- --access-key=DO00AUDGL32QLFKV8CEP --secret-access-key=$(cat secrets.txt)
# they are available at
# https://private-jets.fra1.digitaloceanspaces.com/position/icao_number={icao}/month={year}-{month}/data.json

# Build database of legs `[2019, 2024]` (over existing positions computed by `etl_positions`)
cargo run --features="build-binary" --release --bin etl_legs -- --access-key=DO00AUDGL32QLFKV8CEP --secret-access-key=$(cat secrets.txt)
# they are available at
# https://private-jets.fra1.digitaloceanspaces.com/leg/v1/data/icao_number={icao}/month={year}-{month}/data.csv

Licence

MIT, see LICENSE.md


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 76
Total Committers: 3
Avg Commits per committer: 25.333
Development Distribution Score (DDS): 0.066

Commits in past year: 8
Committers in past year: 2
Avg Commits per committer in past year: 4.0
Development Distribution Score (DDS) in past year: 0.125

Name Email Commits
jorgecardleitao 1****o 71
Jorge Leitao j****o@g****m 4
Milan Klöwer m****r@g****e 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 1
Total pull requests: 95
Average time to close issues: 11 days
Average time to close pull requests: 2 days
Total issue authors: 1
Total pull request authors: 2
Average comments per issue: 0.0
Average comments per pull request: 0.57
Merged pull request: 94
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 5
Past year average time to close issues: N/A
Past year average time to close pull requests: 10 days
Past year issue authors: 0
Past year pull request authors: 2
Past year average comments per issue: 0
Past year average comments per pull request: 1.4
Past year merged pull request: 5
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/jorgecardleitao/private-jets

Top Issue Authors

  • marta-ov (1)

Top Pull Request Authors

  • jorgecardleitao (94)
  • milankl (1)

Top Issue Labels

Top Pull Request Labels


Dependencies

Cargo.toml cargo

Score: 4.836281906951478