Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-02-2013, 15:22   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Grib Enhancements

I have been working on the grib plugin to greatly enhance its features. I am not quite done, and am open to requests, but so far I have something working and I need people to test it. The improvements are the timeline ability (interpolation between gribs and movie like playback), and the ability to use any plot type for any data type (isobars for wave height, or color overlay map for wind speed possible examples)

The repository is a fork of the main opencpn on git hub:
https://github.com/seandepagnier/OpenCPN

you will have to checkout the grib_enhancements branch.

I imagine this will break for some people, so please inform me of your build errors. I am using linux so it is unlikely to compile without issues on windows.
seandepagnier is offline   Reply With Quote
Old 13-02-2013, 03:02   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

boat a....
Hello. Nice feature.
I can't be much of a help since I'm on Win XP and have very limited compiling experience. But this info may be useful since you're in the code and maybe not aware of this before.
So, running XP on ~2 GHz, ~2 Mb RAM and 1680x1050@128 Mb, today's grib plugin can be very system consuming. Of course the bigger area the worse. But say if I've a grib covering 400 square Nm, 0.5 Degr dense isobars and wind arrows the system is remarkably slow. Closing isobars has a huge positive effect so normally I'm not viewing them.
My aim with this note is if you happens to run in to anything in the code that seems to steel resources it may be possible for you to rearrange?
And of course if I can help testing what ever in Windows I'll be glad to. Still with my limited skills though.
Thanks.
Hakan is offline   Reply With Quote
Old 13-02-2013, 14:45   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: grib enhancements

Those interested in testing this new functionality on Windows, download the attached file, remove the .doc extension and copy to the plugins folder in your OpenCPN installation.
OpenCPN 3.1.x needed.

Pavel
Attached Files
File Type: doc grib_pi.dll.doc (291.5 KB, 105 views)
nohal is offline   Reply With Quote
Old 13-02-2013, 15:22   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

Hello
Very nice. After just a quick view some initial comments.
The slider and play function are great and strongly missed before.
Short notes:
1)
The system download, see above #2, is still the same. I've to switchthe isobars off to be able to use the PC. Nearly all system resources are consumed and I can for example hardly move a small options window. It takes seconds to move it a centimetre.
2)
The barbed and direction arrows are pointing in different directions. See pic. Southerly wind heading north is correct but everything else is displaced. "+"/"-" sign somewhere?

I'll test more but not tonight. Great job. This will be very nice!

Håkan
Attached Thumbnails
Click image for larger version

Name:	Grib_config.jpg
Views:	186
Size:	70.3 KB
ID:	54692  
Attached Images
 
Hakan is offline   Reply With Quote
Old 13-02-2013, 15:32   #5
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

Ehhh. yes - this was my grib used as of post #4. (skip ".doc")
Attached Files
File Type: doc 20130213_1800_GFS_225524.grb.doc (192.4 KB, 75 views)
Hakan is offline   Reply With Quote
Old 13-02-2013, 23:41   #6
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: grib enhancements

Quote:
Originally Posted by Hakan View Post
Hello
Very nice. After just a quick view some initial comments.
The slider and play function are great and strongly missed before.
Short notes:
1)
The system download, see above #2, is still the same. I've to switchthe isobars off to be able to use the PC. Nearly all system resources are consumed and I can for example hardly move a small options window. It takes seconds to move it a centimetre.
Although the isobars are very slow and inefficiently generated, I am still able to get playback at 4 frames a second over the entire area of your grib on my netbook.

Is it slow when animated, or just slow when paused on a single frame? Was it this slow before the updated grib plugin? Is opengl enabled or not? Is it the same for both?

Quote:
Originally Posted by Hakan View Post
Hello
2)
The barbed and direction arrows are pointing in different directions. See pic. Southerly wind heading north is correct but everything else is displaced. "+"/"-" sign somewhere?
Are the barbs actually correct? check other sources. Yes there is a minor bug here, the next version will fix this.



On another note. Could someone please direct me to a source of grib files which have sea temperature currents, and swell or wave (preferably with direction)? More fields are better, we really need to be able to do everything zygrib can.
seandepagnier is offline   Reply With Quote
Old 14-02-2013, 00:24   #7
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

Quote:
Originally Posted by boat_alexandra View Post
Is it slow when animated, or just slow when paused on a single frame? Was it this slow before the updated grib plugin? Is opengl enabled or not? Is it the same for both?
1) Yes it was slow before this plugin version. See post 2 above. I can't use the isobars at all so consequently I havn't tried them animated.
2) No opengl.

Håkan
Hakan is offline   Reply With Quote
Old 14-02-2013, 00:35   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

boat_A...
A elucidation... When I previously refer to isobars it's all about pressure isobars. Not the new one connecting equal wind speed.
>> Added 15 min later: With this new pgm version it's handy to control the pressure isobars dense. If I set the dense to > ~4 mbar it actually works without extremely system load for the relatively small area in my earlier attached grib file.

And...
Running animation using the new wind isobars works fine. No system slow down to mention.
Hakan is offline   Reply With Quote
Old 14-02-2013, 06:44   #9
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

boat_a....
Hello again(3)
Some more runs with this nice plugin. I may have a revised experience with the pressure isobar concerns. Now when I have the opportunity to change dense of the lines the system load is very reasonable. So if you won't happens to run into any obsolete code I think we can skip my task.

Instead I may raise another task? When viewing waves as numbers there are some areas in the grib without data. I don't know if they are marked with zeros or null. However are these fields not blank but filled with probably the negative end of "int". The negative fills are not there all the times but every 6th update in the animation. Sometimes are the entire number square instead not drawn. This is great and may also be your intention? Run the animation using my grib and see if you get the same result.
See attached dump and the corresponding grib.

Thanks.
Håkan
Attached Thumbnails
Click image for larger version

Name:	Wave_number.jpg
Views:	184
Size:	149.0 KB
ID:	54745  
Attached Files
File Type: doc gfs20130214142001909.grb.doc (83.4 KB, 64 views)
Hakan is offline   Reply With Quote
Old 14-02-2013, 09:25   #10
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: grib enhancements

boat_alexandra

I compiled on kubuntu 64 bits 12.10 without problems. The plugin generally works well, but I get a crash (sometimes) in one situation.
In Toolbar->Options-> Plugins-> Gribs -> Preferences. Ticking the option of color blending and then pressing OK, creates repeatable crashes.
Running ddd to catch this crash, I find that sometimes the plugin crashes, and sometimes the plugin just proceeds, with color blending working.
Here is a screen-dump from a crash.

Click image for larger version

Name:	grib_prob.png
Views:	240
Size:	77.0 KB
ID:	54757

Thomas
cagney is offline   Reply With Quote
Old 14-02-2013, 15:41   #11
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: grib enhancements

Quote:
Originally Posted by Hakan View Post
boat_a....
Hello again(3)
Some more runs with this nice plugin. I may have a revised experience with the pressure isobar concerns. Now when I have the opportunity to change dense of the lines the system load is very reasonable. So if you won't happens to run into any obsolete code I think we can skip my task.

Instead I may raise another task? When viewing waves as numbers there are some areas in the grib without data. I don't know if they are marked with zeros or null. However are these fields not blank but filled with probably the negative end of "int". The negative fills are not there all the times but every 6th update in the animation. Sometimes are the entire number square instead not drawn. This is great and may also be your intention? Run the animation using my grib and see if you get the same result.
See attached dump and the corresponding grib.

Thanks.
Håkan
Are you sure it is the same grib? For this grib file I get no wave data, only pressure, and one axis of wind (which caused a crash for me, but fixed it) Anyway, I cannot seem to get your numbers, what exact settings did you use to get that display?


Quote:
Originally Posted by cagney View Post
boat_alexandra

I compiled on kubuntu 64 bits 12.10 without problems. The plugin generally works well, but I get a crash (sometimes) in one situation.
In Toolbar->Options-> Plugins-> Gribs -> Preferences. Ticking the option of color blending and then pressing OK, creates repeatable crashes.
Running ddd to catch this crash, I find that sometimes the plugin crashes, and sometimes the plugin just proceeds, with color blending working.
Here is a screen-dump from a crash.

Attachment 54757

Thomas
Thank you for the very useful info related to the crash. The problem should happen only if you access the preferences before loading the grib dialog, but it will be fixed in my next update.
seandepagnier is offline   Reply With Quote
Old 14-02-2013, 23:17   #12
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

Quote:
Originally Posted by boat_alexandra View Post
Are you sure it is the same grib? For this grib file I get no wave data, only pressure, and one axis of wind (which caused a crash for me, but fixed it) Anyway, I cannot seem to get your numbers, what exact settings did you use to get that display?
boat_al....
1) First I'll confirm that Thomas' crash report is valid also for WinXp.

2) Wave numbers
Maybe not but lets make it again.
Accordingly:
Win Xp
No OpenGL
grib file attached
Screen dumps of main window and preferences printed in attached PDF.

If you need more please let know.

Håkan
Attached Files
File Type: doc gfs20130215062000828.grb.doc (68.9 KB, 62 views)
File Type: pdf Wave number dumps.pdf (391.3 KB, 82 views)
Hakan is offline   Reply With Quote
Old 14-02-2013, 23:53   #13
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: grib enhancements

boat_a...
Ruler restore.
A new comment if my limited English can explain this. I'll make a try. Please ask if I'm unclear.

1)
Scenario:
View a grib using animation play.
Stop using grib plugin by clicking the toolbar's icon.
Start using grib plugin by clicking the toolbar's icon.
The animation continues from its last position.
>>Maybe your intention but a little surprising in my mind. My expectations was a ruler in home position and no play until I start it. Comments?

2)
Scenario:
View a grib using animation play.
Shut down OpenCPN.
Open OCPN
Start using grib plugin by clicking the toolbar's icon.
The ruler is located in the position from last session but no grib file marked.
>>Expectations: The ruler located in home position.

3)
If I try to start animation without a marked grib file the playing actually starts but, naturally, without showing any data.
>> Expectations: No playing if no grib file is marked.

Håkan
Hakan is offline   Reply With Quote
Old 15-02-2013, 09:32   #14
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: grib enhancements

I have been trying Nohal's grib_pi.dll in Openpn 3.1.1224 and 3.1.1405
by placing the file in the plugins directory. For some reason this Plugin does not appear under settings > plugins. What am I not going properly?
rgleason is offline   Reply With Quote
Old 15-02-2013, 09:35   #15
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: grib enhancements

Your log? Sure you have the name right (=ending with _pi.dll)? Anyway, I should finally have normal internet access during the weekend, so expect new build with the latest changes...

Pavel
nohal is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pilot Grib Files - Similar to Pilot Charts rgleason OpenCPN 22 05-05-2015 03:15
grib weather plugin not visible geo38 OpenCPN 6 02-08-2012 15:45
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
GRIB Icon bzs OpenCPN 16 04-09-2011 06:43

Advertise Here


All times are GMT -7. The time now is 20:03.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.