I put both bits in a function node in #nodered and plotted the result.
So now I have a radar plot of aircraft distance and signal strength to show changes to my #VHF #VDL2 station.
I could not have written this code, so its a pretty big deal in my books.