If you are interested in analysing weather data and making predictions such as rainfall, storm, etc., then Mathematica has nice functionality that you can use. In this article, let me cover a few basic functions in this category.
Let us start by getting the coordinates of the place for which we wish to get the Weather data.
Although we can get the weather data using the above coordinates directly, we can also find out the weather stations near the location and use those.
Here is another way:
The last command above returns the 3 “nearest” weather stations close to the coordinates.
Now that we have the coordinates and the weather station names, we can easily get the current weather data.
Like the above properties, we can get data for “Visibility”, “Pressure”, “WindSpeed”, etc.
Just as we can get the “current” weather data, there is another interesting function called “WeatherForecastData[]” for forecasting the weather for 1 week starting “today”. The following gives “Temperature” data for the next week.
Similarly, we can get 1 week’s forecast for “Humidity”:
Instead of a Table, we can represent as a graph as well:
Finally, if you choose to, you can even render it on a map:
Isn’t it nice?
How can we use the Weather data (including forecast) for predicting rainfall, storm, etc? Obviously, we need a good, proven model that is based on the fundamental weather parameters, seasonality, altitude, etc. Such a model can then be implemented in Mathematica and used for prediction.
You can download the Mathematica notebook here.
Have a nice weekend!








Recent Comments