Hi all,
I am attempting to make a simple vector plot of wind speed and direction in the Illinois area using the following code:
data = {WeatherData[#, "Coordinates"],
First[
WeatherData[#,
"WindSpeed"]]*{-Sin[WeatherData[#, "WindDirection"]], -Cos[
WeatherData[#, "WindDirection"]]}} & /@ {"KSPI", "KORD",
"KMDW", "KCMI", "KBMI"};
ListVectorPlot[data]
Approximately every other time I execute the ListVectorPlot command, the kernel will crash for no apparent reason. This even occurs when I put the data=... and ListVectorPlot commands in separate input cells, and re-run only the ListVectorPlot command (i.e., the data was not changed between successful and crashing calls of ListVectorPlot. Has anyone else seen this behavior, and/or is there a way to modify my code so that it does not happen? I am running Mathematica version 10.3 on Windows 10.