 Hello, welcome back on my YouTube channel. It has been a very wet day here and in the last days we've been talking about wind, but let's today address precipitation. So I'm going to use a Grip file from a meteorological model, maybe you can find one from your own Met Office, but this file has kinds of meteorological variables including precipitation and temperature. And today we're going to see in QGIS how to visualize this using an animation with a temporal controller and how to extract data for a specific point and create graphs. We also learn how to calculate the total precipitation for the locations in the Grip file. After downloading I can use the browser panel to drag the mesh format to the map canvas in QGIS where it selects already a variable to visualize. I want to change the projection of the project to the Dutch projection and I use OpenStreetMap as a background layer. Make sure that the mesh is on top and I'm going to open the properties, the layer properties to see what variables are in there and see if the time is set because it's a temporal mesh. Let's open the layer styling panel which adapts to the mesh layer and I'm going to choose here the total precipitation. You can see that the units are in kilograms per square meter, but that's equivalent to a millimeter. And I go to the tab for the contours and there I can change the color ramp that is used for the visualization. So you could choose blues which always goes nice for precipitation data, but make sure that for the value of zero you choose a zero percent opacity so that the dry pixels are transparent while the others are having an intensity color of blue. You can switch on the temporal controller where we can see that we have here data from 21st of February 6 o'clock to 23rd of February 6 o'clock and when I press the play button it starts to animate. In another video you've learned how to export this to an animation, an animated GIF. Here we will not do that. I'm going to edit the legend to have less decimals and I'm going to add the suffix millimeters not to get confused. You could also use blending mode multiply to also make the pixels with the color transparent but it will change a little bit the colors. You can also choose another color ramp from the CPT city catalog for example. Go to create new color ramp, choose CPT city and there you see precipitation and you can choose one of these ramps that are made for you. Click OK and let's see how that looks like. Remember that we still have our blending on. This also looks nice. We can also do calculations with mesh layers. So I go to the mesh calculator which works in a similar way as the raster calculator but there are a few different functions and different ways it works. So I can calculate statistics from the mesh like calculating the sum. So if I want to know the sum of the precipitation for a time period I choose this sum function I create an on the fly dataset group. These dataset groups go into the mesh layer that we have, it will be added to it as an extra variable but it will not be saved inside the layer, it will be temporary. Here I can change the date range, so let's take just 24 hours, so from 6 o'clock on the 21st to 6 o'clock on the 22nd and I could also use a mask layer for the spatial extent but here I just keep the extent that we have here. And here we see that the result is added and I can visualize it by clicking on the contour. Of course it makes more sense to also change this to blues and there we see that how the distribution of the total precipitation is in the Netherlands for these 24 hours. Now there are some nice tools in QGIS to extract values from a point. So if we want to know for a specific location the trends in temperature and precipitation for example we can place a point here on the map. I just create a temporary scratch layer with location, choose point, let's change it also to the projection of this project and I just add a point here, talk about the editing and then in the processing toolbox under the mesh group you will find a lot of nice tools and one of them is to export time series values from points of a mesh data set. Choose our mesh data set, here under data set groups you can choose select in available data set groups and there you can choose the variables that you want to extract. So let's use total precipitation and temperature, here you can also modify the time extent so I want it for the same 24 hours, so from 6 to 6 and you can also modify the time step but we keep it here as this default in the mesh which is an hour and you can change the digits for the output coordinates and data set values, we keep the defaults here and let's save it as PNT, run it, it's pretty fast and then if I refresh the browser I find the CSV file which I can add to the layers panel and if I open the attribute table I see here the values for precipitation and temperature with the time stamp and the let you longitude coordinates. Of course you can visualize that in a spreadsheet program or with other tools but here we're going to use the data plot leak plugin. After installing the data plot leak plugin you can find this button to open the panel, make it a bit wider, change the layer to our CSV file and I want to first do the rainfall as a bar plot, change the X field to time and the Y field to precipitation. We don't want to use the legend title later so I'll just keep it and those colors are okay for precipitation, I uncheck the button here to show the legend and I give the plot a title precipitation, change those labels, just use capital T for time, change the units for precipitation to millimeters and use a capital P and that looks okay so let's create the plot. So here it will create the plot in this panel so if you want it wider you can change the width of the panel and you can always export this to a PNG. Now let's do the temperature, choose a scatter plot, same table but I change the Y field to temperature, change the colors, let's use red and use points and lines, keep the rest as is, change the title to temperature and make clear that's degree Celsius and let's clean the plot canvas otherwise it will be combined with the previous plot and when we create the plot here we have the temperature trend for these days and time which you can also export to an image. I hope you've enjoyed this video, if you like these videos please subscribe to my channel and looking forward to see you again.