Top
Best
New

Posted by jamesharding 3 days ago

Show HN: I'm an airline pilot – I built interactive graphs/globes of my flights(jameshard.ing)
Hey HN!

Pilots everywhere are required to keep a logbook of all their flying hours, aircraft, airports, and so on. Since I track everything digitally (some people still just use paper logbooks!), I put together some data visualizations and a few 3D globes to show my flying history.

This globe is probably my favourite so far: https://jameshard.ing/pilot/globes/all

If you’ve got ideas for other graphs or ways to show this kind of data, I’d love to hear them!

1509 points | 196 comments
ok_computer 3 days ago|
Cool visualization for your personal logbook. How is the raw or display data stored?

The globe map reminds me of this hexagonal grid article from my bookmarks I’d found on here or reddit.

https://www.redblobgames.com/grids/hexagons/

As an airline pilot, I am curious, have you watched the season 2 of Nathan Fielder’s Rehearsal on HBO, that comically addresses the topic of pilot-copilot communication?

If so what are your thoughts on his portrayal of the existence of copilot communication friction. And without intending to dig into your personal business, do you think there is a tendency and survivor (retention) bias for the profession to remain high functioning ______, without recognizing a need for help. Or is this portrayal of stunted coworker dialog an edge case that is amplified from his perspective.

jamesharding 3 days ago||
The data is all in a sqlite file from my logbook software! I wrote a little post about extracting the data here: https://jameshard.ing/posts/querying-logten-pilot-logbook-sq...

I have only seen a few clips from The Rehersal (the bit with Sully listening to Evanescence), so I don't have much to go on. Pilot communication is definitely something that we spend a lot of time talking about and training (under the larger banner of CRM - crew resource management), and in my experience the industry is making real efforts to be better in this area!

im_down_w_otp 3 days ago|||
Hey! I used to work for the company that makes that logbook software. That was a great job. The CEO was an amateur pilot himself and really, really loved software product design.

It's been over a decade, but it's cool to see that software still being iterated on and pilots still loving it.

Even cooler to see someone such as yourself extending its usefulness by leveraging the data. Cheers!

jamesharding 3 days ago||
Awesome!

You can tell that the software is created by people passionate about aviation (and also passionate about nice UX, something that most all of the Logten competitors really lack). Do you remember if my guess about using NSDate internally was correct?

im_down_w_otp 3 days ago||
"passionate about aviation" and "passionate about nice UX" definitely described Noah and the rest of the team!

Honestly, I don't remember Re: NSDate. It was many jobs and Dante's levels of burnout ago. :-)

What I remember from that time was a lot of fighting with Apple's early iCloud syncing. Because it had a habit of being incredibly fraught and flakey using SQLite-backed Core Data stuff.

ok_computer 3 days ago|||
Cool, thank you for the response and details.
wetoastfood 3 days ago|||
> How is the raw or display data stored?

He answered in the post that he uses LogTen Pro[1] which enables querying with SQL[2]. In the SQL post he says the app has an export for CSV but the app stores it in SQLite which you can access and query from directly.

[1] https://logten.com/ [2] https://jameshard.ing/posts/querying-logten-pilot-logbook-sq...

fastball 3 days ago|||
I assumed the globe was using Uber's H3 library for the hexagons.
bombcar 3 days ago||
Reminds me of https://youtu.be/1SKDvQzcasg which is quite old.
voxleone 3 days ago||
Very cool. I just wanted to say how much I enjoyed reading through your detailed flight logs — the way you’ve documented your experience, from distances and time in the air to the nuances of roles (P1, P2, PICUS), was fascinating.

As someone concerned with these matters — developing SpinStep, a quaternion-based library for modeling orientation and vector state evolution in physical systems — I found myself unexpectedly inspired by your data. It got me thinking: could these kinds of spatiotemporal logs, with their emphasis on direction, roles, and environmental influences, be approached through something like rotational state modeling?

For example:

.Aircraft headings and orientation changes could map naturally to quaternions.

.Role transitions (e.g. P1 ↔ P2) resemble discrete state changes within a continuous system.

.Wind effects or flight network patterns might even be modeled as external fields influencing orientation over time.

I hadn’t envisioned SpinStep in this context, but your log offered a compelling perspective. Whether or not it leads to something concrete, I just wanted to thank you for the inspiration.

.https://github.com/VoxleOne/SpinStep/blob/main/README.md \

.https://github.com/VoxleOne/SpinStep/blob/main/docs/01-ratio...

jampekka 3 days ago|
The repo reads a bit LLM written.

Quaternions have some nice properties for some operations with 3D rotations, but they are not a panacea.

the_arun 3 days ago||
Folks like you (expert in multiple domains) are an inspiration for people like me. I always dream to do something other than my day job. Hope I push through my laziness to do it some day !
ProZsolt 3 days ago||
Sometimes I wish software development didn’t pay so exceptionally well. I’m interested in so many other things, but it’s hard to justify switching to another full-time field, knowing it would mean a significant pay cut.
bronco21016 3 days ago|||
Depending on your locale and position, you may have it backwards. Check out pilot pay in the United States at www.airlinepilotcentral.com
nimish 3 days ago|||
I wish I wasn't medically barred from having a pilot's license. Not for the pay, but I just like the idea of flying. Unfortunately, I cannot. I recommend people use their salaries to learn how to fly regardless! It's maybe ~$15-20k to get a PPL which is doable for the tech crowd with some planning.
BrandoElFollito 2 days ago||||
I think GP meant some girls outside of software engineering.

I would love to switch (back) to teaching but a 10x pay cut is not doable. Maybe close to retirement I will give it a try.

DC-3 3 days ago|||
My heart bleeds.
jamesharding 3 days ago|||
What a kind comment :) Thank you!
sillyfluke 2 days ago||
There's an oft-repeated line that goes something like, "I was lucky enough to be terrible at my first job." ie, optionality is a curse.
weinzierl 3 days ago||
That is beautiful. Besides the globe and the cool animations I like the dashboard that shows summary stats.

This made me think. Either Frauenhofer or Helmholtz in Germany used to have a site where you could enter your specific flights and it would tell you your overall radiation exposure. This was meant mainly for flight personnel and it was not nearly as beautiful. The accumulated exposure would be a useful addition for the dashboard.

jamesharding 3 days ago||
A great idea!

The company that I work for does actually provide us with our cumulative dosage data for the month/year/lifetime, but not at such a granular level. Do you know of any statistical way that I could calculate this?

I suppose I could work out the great circle routes and the approximate dosage in that airspace at a given time?

defrost 3 days ago||
For any third parties (I'm getting a wee bit old for these diversions) geophysical survey companies (the ones with crop dusters with stingers on their tails, high wing twin props with stingers and wing tips sensors, etc.) have ongoing globally spread about calibration flights for radiometric (environmental ground radiation) surveys.

The surveys are (usually) 200m spaced grid lines 20km (or so) long flown 80m above ground, the calibration flights are stacked lines from quite high up down to ground level so that the post processing can estimate and subtract cosmic radiation "from above" and how it falls off through the current atmosphere (density, humidity, etc. thinning out current gamma inflow from up high).

Such things, if accessed, would fine tune a radiometric exposure by height model in the same way that using the global magnetic model(s) (there are two main ones) can tune up true north magnetic readings .. it's a fine adjustment that only matters to some.

Some working airport that your cross somewhere in the world likely has a hanger full of geophys survey craft (helicopters and planes) .. might be worth chasing up.

mcflubbins 3 days ago||
Nomadlist had (has?) radiation exposure for all of your trips too, I was shocked when I saw the stats!
SwiftyBug 2 days ago||
Do you travel a lot? Because a trip from east to west coasts of the US expose you to less radiation than an X-Ray exam. Doesn't seem that shocking.
zX41ZdbW 3 days ago||
I have a similar visualization on top of ~150 billion data points of ADS-B data: https://adsb.exposed/

It is interactive, so you can filter by any dimension, like the types of aircraft you fly.

It is 2D, but I thought about making it 3D as well.

PS. The map you showed is somewhat slow - when I zoom in, the framerate is less than 10.

leeoniya 3 days ago|
wow, that's some serious data crunching.

can you share some tech details?

zX41ZdbW 2 days ago||
There is the "About" link at the bottom, pointing to the source code:

https://github.com/ClickHouse/adsb.exposed/

In fact, the data processing pipeline is entirely trivial (a one-page shell script), and the frontend is also trivial (a single HTML page with vanilla JavaScript).

inoffensivename 2 days ago||
I love what you've done with your logbook, but the coolest part of the page was the photo of you on the flight deck with your Dad.

I'm an airline pilot here in the US and it would be the privilege of a lifetime to be able to do that with one of my kids.

jamesharding 2 days ago|
It truly has been the career highlight for me! He will be retiring in a few months, so we have the last flight together planned aleady.

Hopefully you will be able to have the same experience with your kids! What fleet are you on currently?

18172828286177 3 days ago||
Being a professional pilot while also being able to put together such a polished software project like this is incredibly impressive
barbazoo 3 days ago||
It’s not a 9-5 for many and time between flights can be significant. Not surprised they do that as a hobby on the side. Not imagining they’re doing anything during the flight.
shawabawa3 3 days ago|||
do pilots get to mess around on a laptop while flying? My understanding is that most of a flight is just sitting there waiting for landing to start, could mean a lot of spare time to pick up programming
mbreese 3 days ago|||
I don’t think the cognitive context switching required would be a good fit. I imagine pilots always have to be “on” just in case something happens, even if they are letting the plane do some of the routine flying.
Rendello 3 days ago||||
When you're 8 hours deep in borrow checker hell, you're in no emotional state to be piloting the A380.
kunley 3 days ago||
Or the contrary: nothing can shake you anymore
Mawr 3 days ago|||
Sure: https://en.wikipedia.org/wiki/Northwest_Airlines_Flight_188 (video: https://www.youtube.com/watch?v=uzmeGS29nu8)
perks_12 3 days ago||
He graduated from UofT with a major in CompSci.
ccorcos 3 days ago||
You should add time dilation to your list of statistics! You’re probably around 5 microseconds younger than someone who stayed in Earth!
jamesharding 2 days ago||
Flying Eastbound across the international date line also kind of counts as going back in time, right?
_dark_matter_ 2 days ago||
Okay but I commute to work so give me a picosecond back please.
imp0cat 3 days ago||
The logbook is nice, but the split-flap display is downright awesome. ;)

https://jameshard.ing/projects/split-flap

jamesharding 3 days ago|
Glad you like it! I have a screen on there which shows my flights live while airborne - maybe worth a post of its own :)
jakub_g 3 days ago|
If you're interested in the subject, let me introduce you to GCMap.

GCMap can plot a line between any two IATA airport codes; actually you can put arbitrary number of pairs comma separated; and best of all, they can be passed as a URL param. For example: `JFK-LHR,LHR-CDG,CDG-FRA`

http://www.gcmap.com/mapui?P=JFK-LHR,LHR-CDG,CDG-FRA

I track my own flights by sending an email to myself with a GCMap URL every now and then.

kccqzy 3 days ago|
GCMap doesn't have a whole lot of different map projections to choose from. Having more than one pair on a single map will result in a pretty bad map projection. That's my biggest complaint. They really need to add more better projections such as Mollweide, Winkel Tripel, Robinson, etc. Or they should just have a globe.
More comments...