Inspiration for Kelly McGillis's Top Gun character now Pentagon #2

I always wondered why a qualified astrophysicist would be working for the Navy. Maybe she just wasn’t any good at astrophysics?