Calculating a NW Segment of Salem’s Class D Air Space

I’m still working on the matter of the low flying Learjet over Salem, and in that matter, I have determined the jet first flew parallel to the FAA’s Class D airspace as much as it could before entering it.

So then I wondered, why and what distance is involved. So here is a picture of the FAA’s Class D air space over Salem. It encompasses about 78 square miles. I asked ChatGPT for a strategy on how to determine the distance of the segment and it assumed I could easily determine the coordinates of the interior and exterior corner of the shape using a mouse over a map. I’m not thrilled with using a mouse over a map to obtain accurate coordinates, so I suggested we determine the points programmatically (through programming) and then I would have dead-accurate numbers — something the FAA and government might be comfortable with.

3 dimensional depicting of Class D airspace over Salem, OR

The top most straight line segment point at the northwest (pointing towards 11 o’clock) is the border that the Learjet flew along. I wanted to know what that segment’s distance is. So with the help of ChatGPT, we constructed a query that visits the 6,000+ points used to define the air space shape above and determine for any given 3 points, what the angle is. Then only those angles far away from 180 degrees (3 points in a straight line would have an angle of 180 degrees) or thereabout would be of interest and most likely represent corners.

ChatGPT then created an HTML page displaying a map showing where the 8 points appear on the map as I told it that I wanted to verify visually the above calculations. Bingo: an HTML page showing me the points.

Then I took the middle coordinates, “lon2” & “lat2”, for set #1 and set #6319 and computed the distance:

9710 meters which is about 6 miles.

Having fun with ChatGPT and FAA air space shapes!


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *