﻿{"id":5467,"date":"2018-06-07T06:35:11","date_gmt":"2018-06-07T04:35:11","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5467"},"modified":"2023-04-28T14:58:03","modified_gmt":"2023-04-28T12:58:03","slug":"how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/","title":{"rendered":"How to integrate free marine and terrestrial weather forecasts into QGis"},"content":{"rendered":"<p>In the previous article we discussed\u00a0<a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=http:\/\/www.sigterritoires.fr\/%3Fp%3D651\">How to integrate free marine and terrestrial weather forecasts into\u00a0ArcGis<\/a>.<br \/>\nIn this article we will discuss how to integrate weather forecasts into a\u00a0QGis\u00a0project\u00a0.\u00a0We will use marine forecast data for 8 days.\u00a0These data is provided by the companies\u00a0\u00a0\u00a0<a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=http:\/\/www.nasca.ovh\/\">NASCA<\/a>\u00a0\u00a0\u00a0and\u00a0\u00a0\u00a0<a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=http:\/\/www.actimar.fr\/\">ACTIMAR<\/a>\u00a0, via the products\u00a0\u00a0enav-forecast\u00a0.\u00a0Besides the software that employs and shares these forecasts for consultation and analysis (\u00a0<a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=http:\/\/www.nasca.ovh\/eNAVviewer\/tabid\/151\/language\/fr-FR\/Default.aspx\">enav-viewer<\/a>\u00a0,\u00a0\u00a0\u00a0enav-forecast\u00a0,\u00a0\u00a0\u00a0enav-forecast\u00a0for iPhone\u00a0,\u00a0\u00a0\u00a0enav\u00a0-Pilot\u00a0), these companies also provides you with access to data via a WFS connection.<\/p>\n<p><strong>What data is available?<\/strong><!--more--><\/p>\n<p>Regarding the data type, you access the 8-\u00a0day\u00a0forecasts,\u00a0every 3 hours, for the following parameters:<\/p>\n<ul>\n<li>height (in meters)\u00a0, direction\u00a0(in \u00b0) and wave period (in sec)<\/li>\n<li>crossed sea (wave direction in \u00b0\u00a0, direction\u00a0of the swell in \u00b0)<\/li>\n<li>speed (in\u00a0knots\u00a0) and direction (in \u00b0) of the average wind<\/li>\n<li>speed (in\u00a0knots\u00a0) of wind gusts<\/li>\n<li>speed (in\u00a0knots\u00a0) and direction (in \u00b0) of the surface current<\/li>\n<li>temperature (in \u00b0 C) of the sea surface water<\/li>\n<li>temperature (in \u00b0 C) of the air<\/li>\n<li>rainfall (in mm)<\/li>\n<\/ul>\n<p><strong>Which data grid?<\/strong><\/p>\n<p>The grid of free forecasts is of 0.5 \u00b0.\u00a0Other grids are available but subject to subscription (see subscriptions).<br \/>\nThe forecasts cover the whole world.<\/p>\n<p><strong>Update Frequency <\/strong><\/p>\n<p>The forecasts are updated four times a day.<\/p>\n<p><strong>How to set up the WFS connection<\/strong><\/p>\n<p>To set up a WFS connection you click on the button \u00ab\u00a0Add a WFS layer\u201d, then click on the button \u201cNew\u201d\u00a0to create the connection parameters.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5469\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento1.png?fit=498%2C282&amp;ssl=1\" data-orig-size=\"498,282\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento1.png?fit=498%2C282&amp;ssl=1\" class=\"alignnone size-medium wp-image-5469\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento1-300x170.png?resize=300%2C170\" alt=\"\" width=\"300\" height=\"170\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento1.png?resize=300%2C170&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento1.png?w=498&amp;ssl=1 498w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>For the name type a high tech option: NASCA Marine Weather, for example.<br \/>\nFor the URL, enter the following string:<br \/>\nClick OK to close the configuration.<br \/>\nThe connection now appears in the list of possible connections.<\/p>\n<p><strong>Before you log in<\/strong><\/p>\n<p>Open a project with the WGS84 Geographic SCR.\u00a0Display a base map that allows you to zoom in on the area of \u200b\u200binterest.\u00a0When you connect to the WFS server,\u00a0QGis\u00a0will send a query with the coordinates of the four corners of your current display.\u00a0The server will send the available forecasts inside this rectangle to your machine.<\/p>\n<p>If you are working in <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/qgis-projections-crs\/\">projection<\/a> mode (and not geographical), neither\u00a0QGis\u00a0nor the server will make a coordinates transformation. You\u00a0will have no result in return, often, not even an error message.<\/p>\n<p>Therefore it must be verified that what you are going to transmit are latitude and longitude coordinates in degrees.\u00a0To do that, simply, look at the status bar at the bottom of the QGis window: you have a field called \u201ccoordinates\u201d.\u00a0The values \u200b\u200bin this field must be between -180 and 180. If this is the case, you are working with geographic coordinates.<\/p>\n<p>If you are working with geographical coordinates but if you do not zoom in on the area of \u200b\u200binterest, you may have an area too big for the query.\u00a0In addition to being time consuming, WFS servers always have a limit for the number of records.\u00a0When this limit is reached, \u00a0the server sends the records found and then stops.\u00a0You will not have a warning message, just the data will be cut.<\/p>\n<p><strong>Logging in to the WFS server<\/strong><\/p>\n<p>Then, a new connection appears in the list of proposed connections when you click on the button \u00ab\u00a0Add a WFS layer\u00a0\u00bb.\u00a0Click on the button \u00ab\u00a0Log in\u00a0\u00bb.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5470\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento2.png?fit=600%2C478&amp;ssl=1\" data-orig-size=\"600,478\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento2.png?fit=600%2C478&amp;ssl=1\" class=\"alignnone size-medium wp-image-5470\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento2-300x239.png?resize=300%2C239\" alt=\"\" width=\"300\" height=\"239\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento2.png?resize=300%2C239&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento2.png?w=600&amp;ssl=1 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>You will only use the layer: view_meteo99<\/p>\n<p>Click on this line to select it.\u00a0Uncheck the box \u201cCache\u00a0feature\u201d.<br \/>\nClick on \u00ab\u00a0Add\u00a0\u00bb.<\/p>\n<p><strong>Displaying forecast data<\/strong><\/p>\n<p>After a few moments, the new layer is added to the\u00a0QGis\u00a0map window.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5471\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento3.png?fit=630%2C338&amp;ssl=1\" data-orig-size=\"630,338\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento3.png?fit=630%2C338&amp;ssl=1\" class=\"alignnone size-medium wp-image-5471\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento3-300x161.png?resize=300%2C161\" alt=\"\" width=\"300\" height=\"161\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento3.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento3.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Each \u201cpoint\u201d\u00a0of the forecast is, actually, an array of 66 points.\u00a0To be able to view the forecasts for a given hour, you will have to make a selection on all the data for each point.\u00a0Performing this job for all the requests \u00a0is rather complicated and not worth it.\u00a0The most efficient method is to display all the data in\u00a0QGis\u00a0and create a new layer on your workstation.<\/p>\n<p>You can perform this task directly by clicking on the legend of the layer and selecting \u00ab\u00a0Save as &#8230;\u00bb\u00a0But do not rush, there are other little things to fix, and we&rsquo;ll do it all at once.<\/p>\n<p>The WFS connections with\u00a0QGis\u00a0have a small flaw: according to the first value found for an attribute field of the\u00a0table,\u00a0it defines the data type.\u00a0Often we are left with numeric fields in the original table of the server, but QGis reads them as text strings. When working with marine forecasts, the problem does not arise for the values \u200b\u200bof force and speed, which are always\u00a0values \u200b\u200bwith a decimal point.\u00a0On the other hand, for direction values, which are depicted by natural numbers, the problem arises.<br \/>\nYou will have direction values \u200b\u200bas a\u00a0text\u00a0string.\u00a0While\u00a0for a simple display it does not change much, when displaying oriented arrows (currents, waves, wind) it is impossible to request a rotation of the symbol with a text field.\u00a0It is imperative that the direction field be numeric.<\/p>\n<p>To solve this problem, you must create a new numeric field and use the calculator field to work out the values \u200b\u200bfrom the text strings for, and repeat this task for the three direction fields (wave, wind, current).<\/p>\n<p>Tedious work.\u00a0So, a simpler solution must be found.\u00a0We have to build a processing model with the QGis \u00ab\u00a0Graphic modeler\u201d.\u00a0This is a small file that you can download by clicking\u00a0<a href=\"http:\/\/www.nasca.ovh\/downloads\/meteoNascaModel.zip\">here<\/a>\u00a0.<\/p>\n<p>Unzip the file into a directory of your choice.<\/p>\n<p>Open the Chart Modeler:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5472\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento4.png?fit=424%2C170&amp;ssl=1\" data-orig-size=\"424,170\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento4.png?fit=424%2C170&amp;ssl=1\" class=\"alignnone size-medium wp-image-5472\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento4-300x120.png?resize=300%2C120\" alt=\"\" width=\"300\" height=\"120\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento4.png?resize=300%2C120&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento4.png?w=424&amp;ssl=1 424w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nIn the Modeler window, click the first button to open the downloaded template.\u00a0Point to the\u00a0meteoNasca.model\u00a0file.<br \/>\nThe model loads.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5473\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento5.png?fit=630%2C399&amp;ssl=1\" data-orig-size=\"630,399\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento5.png?fit=630%2C399&amp;ssl=1\" class=\"alignnone size-medium wp-image-5473\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento5-300x190.png?resize=300%2C190\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento5.png?resize=300%2C190&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento5.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To execute it, click on the right button \u201cLaunch the model\u00a0\u00bb.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5474\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento6.png?fit=630%2C456&amp;ssl=1\" data-orig-size=\"630,456\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento6.png?fit=630%2C456&amp;ssl=1\" class=\"alignnone size-medium wp-image-5474\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento6-300x217.png?resize=300%2C217\" alt=\"\" width=\"300\" height=\"217\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento6.png?resize=300%2C217&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento6.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Check that the input file is the layer \u00ab\u00a0view_meteo99\u00a0\u00bb.<br \/>\nBrowse the directories to define the location and name of the\u00a0shape\u00a0file\u00a0that will be created on your\u00a0computer. Select\u00a0\u00ab\u00a0Save to file\u00a0\u00bb<br \/>\nClick on\u00a0Run<br \/>\nThe new layer is loaded in the map window.\u00a0You can now delete the WFS layer, it avoids loadings each time you\u00a0change\u00a0the grip of the view.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5475\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento7.png?fit=630%2C339&amp;ssl=1\" data-orig-size=\"630,339\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento7.png?fit=630%2C339&amp;ssl=1\" class=\"alignnone size-medium wp-image-5475\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento7-300x161.png?resize=300%2C161\" alt=\"\" width=\"300\" height=\"161\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento7.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento7.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>Symbology<\/strong>\u00a0<strong>of forecast data<\/strong><\/p>\n<p>For simple data (temperature, rainfall, &#8230;) the only thing to remember is that you have 66 points superimposed on each forecast location.\u00a0You must go through a \u00ab\u00a0subset query\u201d\u00a0in order to show just\u00a0 one step at a time\u00a0:<br \/>\nLayer properties -&gt; \u00a0\u00bb\u00a0\u00a0\u00a0General\u00a0\u00a0\u00a0\u00bb-&gt; Subset (click on query builder)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5476\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento8\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento8.png?fit=630%2C552&amp;ssl=1\" data-orig-size=\"630,552\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento8.png?fit=630%2C552&amp;ssl=1\" class=\"alignnone size-medium wp-image-5476\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento8-300x263.png?resize=300%2C263\" alt=\"\" width=\"300\" height=\"263\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento8.png?resize=300%2C263&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento8.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>You have two attributes, the first for today&rsquo;s date, the second for the time of day.\u00a0<strong>\u00a0<\/strong>\u00a0<strong>WARNING!<\/strong>\u00a0<strong>Time is depicted as GMT not in local time.<\/strong><\/p>\n<p>Before applying the\u00a0symbology, do not forget to define the selection request.\u00a0If not, you will have a stack of symbols on each point.<\/p>\n<p>For complex data (wind, waves, current) you have at least two associated values: direction and strength.\u00a0The classic way to display this type of data is to use an arrow oriented in the direction of the phenomenon and to assign it either a size or a different colour depending on the force.<\/p>\n<p>First thing to know: How is the direction of the phenomenon coded?<br \/>\nAll directions present in the attributes of the table indicate the direction from which the phenomenon originates (the direction from which it comes).<br \/>\nTo position the arrows, it is necessary to apply a rotation to the symbol.\u00a0If you choose a symbol \u201cup arrow\u201d\u00a0and you enter as rotation field only the name of the direction field, your arrows will indicate the opposite direction!\u00a0In this case, use an expression, for rotation, such as [direction field] &#8211; 180.<\/p>\n<p>We have prepared three layer files with\u00a0standard\u00a0symbology\u00a0that should do the trick.\u00a0You can download them in\u00a0\u00a0\u00a0<a href=\"http:\/\/www.nasca.ovh\/downloads\/meteonascaqgis.zip\">here<\/a>\u00a0.<br \/>\nIn the compressed file, you have three\u00a0Qgis\u00a0layer style\u00a0files\u00a0(wind, current and waves) and a folder with the symbols used for the wind in the weather charts (barbules).<br \/>\nThe first three can be extracted in the directory of your choice.\u00a0On the other hand, the file\u00a0\u00a0\u00a0\u201cbarbules\u201d\u00a0\u00a0\u00a0has to be copied in the QGis\u00a0\/\u00a0apps\u00a0\/\u00a0qgis\u00a0\/\u00a0svg\u00a0 installation directory.\u00a0Otherwise, the symbols will not be accessible for style files.<\/p>\n<p>The\u00a0symbology\u00a0for the wind is as follows:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5477\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento9\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento9.png?fit=630%2C338&amp;ssl=1\" data-orig-size=\"630,338\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento9.png?fit=630%2C338&amp;ssl=1\" class=\"alignnone size-medium wp-image-5477\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento9-300x161.png?resize=300%2C161\" alt=\"\" width=\"300\" height=\"161\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento9.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento9.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The symbols used are standard barbules, with increments of knots up to 65 knots.<br \/>\nThe rotation field is already corrected to depict the correct orientation of the barbules.<\/p>\n<p>The\u00a0symbology\u00a0for the current is as follows:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5478\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento10\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento10.png?fit=630%2C337&amp;ssl=1\" data-orig-size=\"630,337\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento10.png?fit=630%2C337&amp;ssl=1\" class=\"alignnone size-medium wp-image-5478\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento10-300x160.png?resize=300%2C160\" alt=\"\" width=\"300\" height=\"160\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento10.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento10.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The symbols used are\u00a0arrows,\u00a0with increments of 1 knot.\u00a0The size of the arrows increases according to the speed.\u00a0Moreover speeds up to 3 knots are in blue, between 3 and 5 are in orange and from 6 knots in red.<br \/>\nThe rotation field is corrected by 180 \u00b0 to have the correct direction of the arrows.<br \/>\nRemember to add in the selection request, besides date and time, a filter on direction and speed so as not to display the null values at ground level (\u00a0<strong>CourantVal<\/strong>\u00a0<strong>&lt;&gt; 0 ANDICurDir<\/strong>\u00a0<strong>&lt;&gt; 0<\/strong>\u00a0).<\/p>\n<p>The\u00a0symbology\u00a0for the waves is as follows:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5479\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-integrate-free-marine-and-terrestrial-weather-forecasts-into-qgis\/viento11\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento11.png?fit=630%2C320&amp;ssl=1\" data-orig-size=\"630,320\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"viento11\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento11.png?fit=630%2C320&amp;ssl=1\" class=\"alignnone size-medium wp-image-5479\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento11-300x152.png?resize=300%2C152\" alt=\"\" width=\"300\" height=\"152\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento11.png?resize=300%2C152&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/viento11.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The symbols used are\u00a0arrows,\u00a0with increments of 1 meter.\u00a0Heights of up to 3 meters are green, between 4 and 7 are yellow and from 7 knots are orange-red.<br \/>\nThe rotation field is corrected by 180 \u00b0 to have the right direction of the arrows.<br \/>\nRemember to add in the selection request, besides date and time, a filter on the direction and speed so as not to display the null values at ground level (\u00a0<strong>HsVal<\/strong>\u00a0<strong>&lt;&gt; 0 AND<\/strong>\u00a0<strong>IHsDir<\/strong>\u00a0<strong>&lt;&gt; 0<\/strong>).<br \/>\nThe labels indicate the significant height of the waves in meters, and the wave period in seconds.<\/p>\n<p>If you have any doubt, do not hesitate to leave a comment!<\/p>\n<ul>\n<li><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article we discussed\u00a0How to integrate free marine and terrestrial weather forecasts into\u00a0ArcGis. In this article we will discuss how to integrate weather forecasts into a\u00a0QGis\u00a0project\u00a0.\u00a0We will use marine forecast data for 8 days.\u00a0These&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1260],"tags":[],"class_list":["post-5467","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1qb","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=5467"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5467\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}