Having a few hours spare on a Sunday evening, I decided to try and visualize the rather dull radiation levels recorded from last weekend. I know how to live right?
Before I got too into the code, I decided to visualize the problem and input data. What did I have? Check this picture out, it should say it all.
See the code, and press Run. Add the Satellite imagery to see the runways properly.
– How to load files?
Luckily with a copy and paste from Stack Overflow, I’ve got myself some asynchronous ajax request using JQuery.
– How to process a CSV file?
Yet again, Googling revealed Jquery-csv. Bingo!
Years of experience of many languages and good Google skills. Yet again, I probably didn’t use all the JQuery I could.
– How to combine the radiation data in minutes, to GPS coordinates in seconds?
I didn’t think too hard about this, I merely iterated around each GPS coordinate and found what radiation existed in the same minute and added a weighted blip on the map. However, that does mean that what you really see as heat is the clumping together of readings as the aircraft slows down or banks. Zoom in and the heat goes. I’ll need to experiment more to get that right – but the basics are there.
– What’s with the markers?
The KML file import provided all the markers, but I couldn’t find a way of deleting or manipulating them to show interesting peaks of radiation. So I’ve just left them for now as I didn’t really care, the 80-20% rule and all that.