Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-12-2013, 14:02   #16
Registered User

Join Date: May 2012
Posts: 408
Re: Weather_Routing Plugin

Lars,

Had a look at the example in my post. It was a broad reach on a fairly straight course. The plugin gave 2d 2h 22m and my point to point calculation gave 2d 3h 9m. I do not have QTVim to compare.

With your OpenCPN and QTVim calculation can you make an estimate for your route based on distance sailed and average speed? It may point to which program needs further investigation.

Best regards,
Mike
__________________

__________________
Rasbats is offline   Reply With Quote
Old 11-12-2013, 15:20   #17
Registered User

Join Date: Apr 2012
Location: Port Vila, Vanuatu
Boat: Van der Stadt Samoa 48
Posts: 127
As far as i can se, OpenCPN have a very low average speed. I am using the polar diagram for my boat, so i can estimat what speed i am supposed to sail.

Regards, Lars
__________________

__________________
Taarnskov is offline   Reply With Quote
Old 14-12-2013, 17:50   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

In
https://github.com/rgleason/weather_...b38b670ed17813

cmakelist.txt lines
109 118 ../grib_pi/src/GribRecord.cpp
110 119 ../grib_pi/src/zuFile.cpp
Are Lines 109 and 110 (A version) and 118 and 119 (B version) considered illegal external file refs?
__________________
rgleason is online now   Reply With Quote
Old 15-12-2013, 08:08   #19
Registered User

Join Date: May 2012
Posts: 408
Re: Weather_Routing Plugin

Revisited the plugin.

Started with fresh copies of OpenCPN (3.3.117) and weather_routing_pi.

Made the corrections listed in post #14.

Had an additional error in 'BoatPlan.h' : NAN not defined

Added:

#if !defined(NAN)
static const long long lNaN = 0xfff8000000000000;
#define NAN (*(double*)&lNaN)
#endif

Below the defines at the head of the file.

Compiled with some warnings and the plugin worked with my GRIB file.
Uploaded the whole copy of OpenCPN and wx routing plugin to:
https://github.com/Rasbats/OpenCPN.3...eather_routing

Git cloned from this source and re-tested. All seems to work fine, although the developer needs to look at the speed issue.

Edited CMakeLists.txt. src/cutil_weather_routing.h was added to the source files and that file (modified) is included in the source for the wxrtg plugin.

No sign of illegal external refs!

Mike
__________________
Rasbats is offline   Reply With Quote
Old 15-12-2013, 11:04   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

Quote:
As far as i can se, OpenCPN have a very low average speed. I am using the polar diagram for my boat, so i can estimat what speed i am supposed to sail. Regards, Lars
Lars, I've noticed that at times too. I've tried adjusting Boat > Hull > Friction what Sean says in the note is
Drag is both frictional (barnackles) and wave based (wave period and height)
This can be computed on boat values above then modified manually. With proper settings hull speed willl be achieved, but also break into planning mode possible. A value o zero means no wake where 100 is heaviest displacement. This also takes into account the different harmonics of wakes before hull speed is reached, so resulting boat polar may appear bumpy.

(For example, our boat Nell does not like short steep waves of 2'-3' height forget going upwind, head off 5-10 degrees.)

You could try adjusting this setting manually and see if that helps.
__________________
rgleason is online now   Reply With Quote
Old 15-12-2013, 15:53   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

Mike wrote:
Quote:
"No sign of illegal external refs!"
Could of the masters [Pavel?] have been at work, fixing the many plugin gremlins called :illegal external file refs" with includes and some kind of back references or someting?
I say this because it seems like tinyxml is no longer flagged as an illlegla external file ref.

Amazing, as soon as I think I learned something, I don't need it.
__________________
rgleason is online now   Reply With Quote
Old 16-12-2013, 11:36   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

Mike, I made the changes you have suggested (more on that later),
compiled weather_routing_pi, compiled a fresh grib_pi for release,
placed in a release version of Opencpn 3.3.1117.

Then downloaded a fresh 16 day wind grib from saildocs and opened it with grib_pi.

Then opened Climatology, set it to December and checked Wind and Current.

Then opened weather_routing_pi, made a new long route by right clicking and selecting "weather route position" and creating two weather route positions new-start2 and new-end2.

Then created a new routing (configuration > new).
Then double clicked on the new route to Edit. In there checked grib, climatology, avoid land, and currents. Set max diverted course to 80. Set the End and Start to the Weather route positions. Clicked on "Grib Time". Hit "Generate" to regenerate the steps. Set time step to 6 hours. Then went into Boat "Edit" set Boat values in Statistics and Hull tabs. Then went to Plot Details tab and hit "Save", the Boat settings close automatically. Then Close "Configuration".

Now hit "Start" to start making isochrones and an optimized route.

See attached result. 24 days (16 days of grib, rest with climatology)

For some reason my older gribs would not work, the routing failed. It took a number of tries to get it going properly, but it works now in Opencpn 3.3.1117.

THANK YOU.
Attached Thumbnails
Click image for larger version

Name:	weather_routing_pi-for-3.3.1117-mike.png
Views:	115
Size:	364.5 KB
ID:	72248  
__________________
rgleason is online now   Reply With Quote
Old 16-12-2013, 12:03   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

Here are some notes about code changes and compiling
Fix_Weather_routing_compile_problems_ov331117_Mike .doc

and and output log report
from buildwin/plugins/weather_routiing_pi/weather_routiing_pi.dir/release
which shows all of the warnings generated by the fiile georef.c (which has 3000 lines!)
Since this is also a main program file, I would think these warnings would be fixed.
'weather_routing_pi.log.doc"

about 30 warnings showing these (many from one line)
warning C4101: 'sinth1' : unreferenced local variable

NOTE: the Debug version of the plugin did not really work right, but the Release version did work . For some reason grib file information was not shown while trying to run in DEBUG mode in MSVC++.
Attached Files
File Type: doc weather_routing_pi.log.doc (10.6 KB, 29 views)
File Type: doc Fix_Weather_routing_compile_problems_ov331117_Mike.doc (33.0 KB, 42 views)
__________________
rgleason is online now   Reply With Quote
Old 16-12-2013, 12:23   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

NOTE: While compiling in MSVC++ DEBUG mode weather_routing_pi did not seem to work very well, and gribs did not show up. Howver in Release mode it worked.
__________________
rgleason is online now   Reply With Quote
Old 16-12-2013, 17:27   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

I've managed to
1. Create a separate Rasbats branch in my local repos,
2. Made changes to that branch in accord with Rasbats changes.
3. Compile and check the operation of weather_routing under o3.3.1117
4. Fully edit the Comment with git commit --amend using esc :x to close editor
5. git push origin Rasbats to https://github.com/rgleason/weather_routing_pi/network
6. Also see Rasbats branch https://github.com/rgleason/weather_...i/tree/Rasbats and click on Fix msvc compile w o3.3.1117 per Rasbats
7. There was a big green button titled Compare & Pull Request, which I hit to make a pull request for branch: Rasbat to Sean's weather_routing_pi Repository.
8. I then had to enter a description - and close. Then there was one other diirective, but i've forgotten what it was and it was completed.
9. Here is how Sean's repository looks now
https://github.com/blog/39-say-hello...aph-visualizer

The only thing that did not work the way I wanted was that the Rasbats branch comes off my Master branch. I should have first set local to be the same as origin master then created the Rasbats branch and made Mike's changes.

I guess I need to visulize this better. This looks like what I'll have to read next.
https://github.com/blog/39-say-hello...aph-visualizer

Hope Sean is not too confused about the two branches. I did put the exact changes in Rasbats branch, which are what he needs to follow.

Earlier I tried to remove my first pull request, but was unsuccessful. Hope it won't confuse, because new by the path diagram, he needs it to get to Rasbats branch.
Rick
__________________
rgleason is online now   Reply With Quote
Old 17-01-2014, 16:03   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

MSVC++ OUTPUT
for Weather_Routing_pi. It does not compile anymore.from new Code

Code:
20>...opencpn-git\plugins\weather_routing_pi\src\BoatPlan.h(86):       error C2065: 'NAN' : undeclared identifier
      20>..opencpn-git\plugins\weather_routing_pi\src\BoatPlan.h(86):       error C2065: 'NAN' : undeclared identifier
      20>..opencpn-git\plugins\weather_routing_pi\src\BoatPlan.h(87):       error C2065: 'NAN' : undeclared identifier
      20>..\opencpn-git\plugins\weather_routing_pi\src\BoatPlan.h(87):       error C2065: 'NAN' : undeclared identifier
      20>..opencpn-git\plugins\weather_routing_pi\src\BoatPlan.h(88):       error C2065: 'NAN' : undeclared identifier
      20>..\opencpn-git\plugins\weather_routing_pi\src\BoatPlan.h(88):       error C2065: 'NAN' : undeclared identifier
      20>..\opencpn-git\plugins\weather_routing_pi\src\RouteMapOverlay.h(71):       warning C4800: 'RouteMapOverlayThread *' : forcing value to bool       'true' or 'false' (performance warning)
      20>..\..\..\plugins\weather_routing_pi\src\SettingsDialog.cpp(114):       error C2065: 'Bool' : undeclared identifier
      20>..\..\..\plugins\weather_routing_pi\src\SettingsDialog.cpp(114):       error C2146: syntax error : missing ';' before identifier       'AlternatesForAll'
      20>..\..\..\plugins\weather_routing_pi\src\SettingsDialog.cpp(114):       error C2065: 'AlternatesForAll' : undeclared identifier
      20>..\..\..\plugins\weather_routing_pi\src\SettingsDialog.cpp(115):       error C2065: 'AlternatesForAll' : undeclared identifier
      20>..\..\..\plugins\weather_routing_pi\src\SettingsDialog.cpp(123):       warning C4800: 'int' : forcing value to bool 'true' or 'false'       (performance warning)
__________________
rgleason is online now   Reply With Quote
Old 28-01-2014, 06:05   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: Weather_Routing Plugin

Please refer to the MAIN Weather routing thread now here
Weather Routing

The Weather Routing Plugin is working now. We need to get some of the Boat / Edit issues worked out with regard to what is required for a Polar file, and Boat.xml file, and some issues with Boat width always being reset when closed to the initial value (8') etc. But more people need to use and test this.
__________________

__________________
rgleason is online now   Reply With Quote
Reply

Tags
plug, weather

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:39.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.