<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Jukka,</p>
<p><br>
</p>
<p>You might want to look at:</p>
<p><a href="https://www.pydap.org/en/latest/index.html" class="x_OWAAutoLink" id="LPlnk863848">https://www.pydap.org/en/latest/index.html</a></p>
<p><br>
</p>
<p><br>
It is the backend of ifm.fcoo.dk using netcdf files. grib can be converted to netcdf.<br>
</p>
<p><br>
</p>
<p>Søren<br>
</p>
<p><br>
</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="font-size:13px; font-family:Tahoma">
<div style="font-size:13px; font-family:Tahoma">
<div style="font-size:13px; font-family:Tahoma">
<div style="font-size:13px; font-family:Tahoma">
<div style="font-size:13px; font-family:Tahoma">
<div style="margin:0px"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" color="#1f497d"><span lang="da" style="font-size:10pt"><strong><font face="Tahoma">
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<b><span style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125); text-transform:uppercase">FORSVARSMINISTERIETS MATERIEL- OG INDKØBSSTYRELSE</span></b></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<b><span lang="EN-US" style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125)">DANISH MINISTRY OF DEFENCE ACQUISITION AND LOGISTICS ORGANISATION</span></b><span lang="EN-US" style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125)"></span></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<b><span lang="EN-US" style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125)"><br>
</span></b></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<span lang="EN-US" style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125)">Joint GEOMETOC Support Centre</span></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<span lang="EN-US" style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125)">Lautrupbjerg 1-5, </span><span style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(31,73,125)">DK-2750 Ballerup</span></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<span style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(0,32,96)"><br>
</span><span lang="NO-BOK" style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(0,32,96)"><span style="font-size:8pt; font-family:Tahoma,sans-serif; color:rgb(3,74,96)">TLF: +45 7281 5627</span><span style="font-size:8pt; font-family:Tahoma,sans-serif; color:rgb(3,74,96)"><br>
MOBIL: +45 2961 9652</span><span style="font-size:8pt; font-family:Tahoma,sans-serif; color:rgb(3,74,96)"><br>
</span></span></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<span style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(0,32,96)">E-mail: <a href="mailto:fmi-ma-opd07@mil.dk" target="_blank" rel="noopener noreferrer" id="LPNoLP"><span style="color:blue">fmi-ma-opd07@mil.dk</span></a></span></p>
<p class="x_x_MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33)">
<span style="font-size:8pt; font-family:Verdana,sans-serif,serif,EmojiFont; color:rgb(0,32,96)">www.fmi.dk</span></p>
<br>
</font></strong></span></font></span></font></div>
<div style="margin:0px"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" color="#1f497d"><span lang="da" style="font-size:10pt"><strong><font face="Tahoma"><br>
</font></strong></span></font></span></font></div>
<div style="margin:0px"><span style="font-size:10pt; font-family:"Tahoma","sans-serif"; color:#034a60"><a href="https://mail.fcoo.dk/owa/sln@fcoo.dk/redir.aspx?C=XRPK8XZJebk6vtukXbinjL73cjoSMG7ceUiX8edX2NLcBHhZKovVCA..&URL=http%3a%2f%2fWWW.FCOO.DK%2f" target="_blank" id="LPNoLP"><br>
</a></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Fra:</b> mapserver-users <mapserver-users-bounces@lists.osgeo.org> på vegne af Rahkonen Jukka (MML) <jukka.rahkonen@maanmittauslaitos.fi><br>
<b>Sendt:</b> 16. marts 2021 11:54:13<br>
<b>Til:</b> Stefan Gofferje; mapserver-users@lists.osgeo.org<br>
<b>Emne:</b> Re: [mapserver-users] Hello from Finland</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Stefan,<br>
<br>
When it comes to memory usage with raster files, Mapserver is reading rasters with GDAL so in this case with
<a href="https://gdal.org/drivers/raster/grib.html">https://gdal.org/drivers/raster/grib.html</a>. I have never been playing with GRIB files and I do not know how well the format is optimized for features that are needed for making fast map services: fast access
 to subregions and overview levels. I have no idea how well GRIB files are indexed for random access, it there is difference between png and JPEG2000 encoding, and how well the GDAL GRIB driver can utilize the possibilities that the format offer.<br>
<br>
The most common raster format that Mapserver services are using is certainly GeoTIFF and when they are tiled, compressed, and have overviews they work pretty well. It is certainly an advantage if you can use the GRIB files directly without conversions. I see
 that you are using Mapcache in front of Mapserver and it will help a lot if you pre-seed the tiles. If you do not pre-seed then each time when the user is the first visitor on some site the bottle neck will be Mapserver.<br>
<br>
The Ls/Hs idea is interesting. I do not believe there is anything ready available but I know that my colleagues at the Finnish Geodetic Institute have made quite nice things with Mapserver and shell scripts running some GDAL commands. Should they be computed
 on-the-fly for the area that is visible on the map?<br>
<br>
I wonder if it could be possible to query the CONTOUR layer that you already has <a href="https://www.mapserver.org/input/vector/contour.html">
https://www.mapserver.org/input/vector/contour.html</a> and search the min/max values from there. Or then to improve the contouring algorithm a bit because it is already processing all the pixels.<br>
<br>
-Jukka Rahkonen-<br>
<br>
-----Alkuperäinen viesti-----<br>
<br>
Lähettäjä: mapserver-users <mapserver-users-bounces@lists.osgeo.org> Puolesta Stefan Gofferje<br>
Lähetetty: tiistai 16. maaliskuuta 2021 12.11<br>
Vastaanottaja: mapserver-users@lists.osgeo.org<br>
Aihe: Re: [mapserver-users] Hello from Finland<br>
<br>
Hi Jeff,<br>
<br>
On 3/15/21 2:35 PM, Jeff McKenna wrote:<br>
 > Thanks Stefan for this wonderful introduction, it's nice to hear of  > positive experiences to give us all more motivation to continue to  > helping to improve MapServer!  Welcome to both you and Iliya to the  > community.  Keep us posted on your activities!<br>
 ><br>
 > Oh, once your MapServer backend is plugged-in be sure to add your  > weather site to the MapServer gallery, so we can help new users see  > what can be done...<br>
<br>
Thanks for your nice words! I now have mapserver and mapcache running successfully and talking to each other in my home lab. I have set up a number of test layers from different input sources pretty successfully.<br>
The documentation and the configuration required some adaption of my thinking processes because it's pretty different from anything else I have ever done before but I love this kind of challenges!<br>
<br>
Currently I have only two issues which prevent me from doing the swap right now. Thanks to NOAA using a 0-360° grid instead of (-180)-180°, there's some artefacts when reprojecting to epsg:3857. For raster maps this is already addressed in #6106. I ran into
 an issue which LINE maps with a CONTOUR source which probably is related and opened #6261.<br>
<br>
Then I have a question... Although it's not strictly necessary, I would like to paint those Hs and Ls in my atmospheric pressure map. Is there a way to run scripts or something like that in mapserver. I could probably run some GDAL stuff externally over the
 grid files in my download script and create some point overlays which could be in a GROUP with the isoline layer but doing this inside of mapserver would kinda be cooler.<br>
<br>
And a second question: How is mapserver handling raster files memory-wise? Does it try to load the whole file to the memory at once?
<br>
My biggest issue during the whole 14 years I run this website always has been balancing preprocessing and map rendering. The more preprocessing I have to do, the longer the whole process of map generation takes but of course I couldn't afford to buy a $100k
 top-of-the-line server with terabytes of RAM and plenty of CPU cores for the rendering...<br>
I'm thinking about my input file strategy at the moment...<br>
1.) One GRIB file for everything (around 1.9GB)<br>
2.) One GRIB file per parameter for all time steps<br>
3.) One GRIB file per time step including all parameters<br>
4.) One GRIB file per parameter for each time step<br>
<br>
4. would be the most complex to configure and also would be fun (irony!) to make local forecasts from but probably take the least memory.<br>
2. and 3. are a fairly good compromise with 2 being easier for calculating local forecasts and 3 easier for calculating additional stuff like my "severe weather warning level"<br>
1. would be easiest for rendering and calculating but even at the moment with GrADS I every now and then run into memory issues (leaks?).<br>
<br>
This project really turns out to be a fun challenge!<br>
Stefan<br>
<br>
-- <br>
  (o_   Stefan Gofferje            | SCLT, MCP, CCSA<br>
  //\   Reg'd Linux User #247167   | VCP #2263<br>
  V_/_  <a href="https://www.gofferje.net">https://www.gofferje.net</a>   | <a href="https://www.saakeskus.fi">
https://www.saakeskus.fi</a><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>
</span></font>
</body>
</html>