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 21-12-2017, 08:58   #1156
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

Inverted Regions from the Help file

Quote:
Inverted Regions This is relatively rare, but in some cases it may be possible to reach a location from two different routes (imagine either side of an island) which is further away from the destination before the destination can be reached. At this point, the algorithm must invert and work inwards on this inverted region (rather than outwards) to possibly reach the destination. This case can occur when routing around islands, or occasionally when routing near a high pressure system. Normally this should be disabled, and extra computations are avoided. NOTE: this mode has bugs
Other Configuration and Settings Straight from Sean's list:

  • Max Diverted Course Maximum course error to continue toward destination. Not all possible courses will be considered and therefore the most optimal route may not be found. This usually (but not in all cases) is obvious when the optimal route is sometimes near the edge of the graph. Using a reasonable value can greatly speeds the rate of computation.
  • Max Course Angle Like Max Diverted Course, except the search range is based from the starting position to the destination. Normally should be set to 180.
  • Max Search Angle This specifies how much the boat course can change between propagations. A value of 180 gives the maximum flexibility of boat movement, but increases the computation time. A minimum of 90 is usually needed for tacking, a value of 120 is recommended with strong currents. Smaller values (60 or less) can give very fast results, but should be used with care, as if the other settings are not appropriate, an inaccurate graph will result. For example, if tacking is needed at any time, then in this case, all courses (0-360) must be specified as degree steps and the boat polar optimized for tacking (see below: VMG tab of boat dialog)
  • Max True Wind Knots Do not navigate in areas with more true wind than this value.
  • Max Apparent Wind Knots Do not navigate in areas with more apparent wind than this value. This should be set to a high value (ie: 100) if not used to avoid extra calculations.
  • Max Swell Meters Do not attempt to navigate in areas with more wave average height than this value.
  • Max Latitude Do not navigate above (or below in the southern hemisphere) this latitude.
  • Max # of Tacks Does not attempt to tack more than this number of times. Currently it tacks as much as it likes initially, then stops tacking at the limit, therefore if a very low number or an even/odd mis-match is given, a very sub-optimal track may be produced. For this reason a value of -1 (unlimited tacks) is recomended
  • Tacking Time Penalty for course change from one tack to the other in seconds. This is normally irrelevant for ocean passages, but could be useful for routes in tight quarters Setting to 0 avoids extra calculations.
  • Wind VS Current When wind opposes current rough seas can be produced. This constraint takes the dot product of the current and wind vectors, and if the result exceeds this value, navigation in this area is avoided. For example, a value of 60 would avoid 30 knots of wind opposing a 2 knot current as well as 20 knots of wind opposing a 3 knot current. Higher values allow for rougher conditions; the special value 0 (default) allows any conditions.
  • Avoid Cyclone Tracks Uses climatology cyclone tracks to avoid routings which cross historic cyclones. The settings in the climatology configuration for windspeed, pressure elnino etc are used, so only visible tracks are considered.
  • Courses (relative to true wind) A list of courses to attempt sailing. Excluding certain values can force the route to explicity show tacks/jibes. Another option is to remove all upwind values to find a course which is always running off the wind (even if it is much longer.) Good results typically have a course every 3-5 degrees; more steps takes longer computation time.
Crossover tab

Shows the relationship of the polars and which one is used for each condition.

Boy would it be great to have a rollover popup for each of these in the program. Great help for users starting out.
rgleason is offline   Reply With Quote
Old 21-12-2017, 09:05   #1157
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Advanced TAB: Reset to Default Parameters

Boy do I like this one Sean! Thanks.
Attached Thumbnails
Click image for larger version

Name:	Screenshot (129).jpg
Views:	68
Size:	410.5 KB
ID:	160825  
rgleason is offline   Reply With Quote
Old 21-12-2017, 09:16   #1158
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
VPP from Boat Specs

Gille it is still in the program.
I does not save the User's boat particulars and there is no calc button to Generate Polars anymore, but the code /intent must be in there.

Go to Edit Boat > Edit Polar > Generate TAB
Attached Thumbnails
Click image for larger version

Name:	Screenshot (131).jpg
Views:	56
Size:	360.7 KB
ID:	160829   Click image for larger version

Name:	Screenshot (132).jpg
Views:	61
Size:	377.8 KB
ID:	160830  

rgleason is offline   Reply With Quote
Old 21-12-2017, 10:03   #1159
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

Ok, Ill try your exe. Maybe we can figure the diff. I'll make a new branch and try diff.
rgleason is offline   Reply With Quote
Old 21-12-2017, 11:52   #1160
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing

Quote:
Originally Posted by rgleason View Post
Ok, Ill try your exe. Maybe we can figure the diff. I'll make a new branch and try diff.
I cloned your github, branch "Fix-tws-polars+20-60", compiled and it works (no crash) !

The problem is not in the code but in the compilation environment...
stelian is offline   Reply With Quote
Old 21-12-2017, 16:40   #1161
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

Quote:
Originally Posted by stelian View Post
I cloned your github, branch "Fix-tws-polars+20-60", compiled and it works (no crash) !

The problem is not in the code but in the compilation environment...
Have
Reinstalled Opencpn v4.8.0
Deleted opencpn.ini and started it over.
Reinstalled a recompile of my beta PI version
Does not fix the problem.

Installed your earlier PI - it works.
So yes it must be the environment.

What do you have in the Buildwin directory? Just NSIS?
What version of Opencpn.lib ? v4.8.0 from the release which is 135kb?
We don't need ocpn_plugins.h do we?

I checked my permissions (right-click properties) in ProgramData and found it is "Read only (Only applies to files)" And it is the same for subdir. I went to the TAB Security and there are these users

ProgramData Dir
Creator Owner - has special permsisions only
System - has all but special pemissions (some greyed)
Administrators - same as System
Users - have Read & Execute, List folder contects & Read & Special Permissons

OpenCPN Dir
Creator Owner - has special permsisions only
System - has all but special pemissions (some greyed)
Administrators - same as System
Users - have Read & Execute, List folder contects & Read & Special - Also users have Modify (not grey) and Special permissions (not grey) everything else is a grey check.


Plugins Dir
Creator Owner - has special permsisions only
System - has all but special pemissions (all greyed)
Administrators - same as System
Users - same as System

Weather_routing Dir
Creator Owner - has special permsisions only
System - has all but special pemissions (all greyed)
Administrators - same as System
Users - same as System

Polars Dir
Same as Weather_routing.

Boats Dir
Same as Weather_routing.

The files themselves are not checked read only and the security is generally all checked but grey.

I think it is the environment but wonder what it could be.
rgleason is offline   Reply With Quote
Old 21-12-2017, 17:41   #1162
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

I turned off Norton Security & Virus, disconnectiing from the internet, didnt help.

Have been checking Norton Security, and it certainly has been busy submitting the compiled files to Norton Community, but I don't see anything that is preventing things from running, from scanning the Norton history. I should check Norton Settings perhaps.

I suppose Norton could have removed an essential MSVC++ file without advising (its done that before) but I don't see any indication of that in the history and the quarantine has a couple of email spam files from Nov and Oct.

This is pretty picky stuff.
rgleason is offline   Reply With Quote
Old 21-12-2017, 20:26   #1163
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

If it is my compile environment, it isn't the main serup. I've complied and run opencpn with no problem.

So it could be a missing a file in buildwin, or build. -What files do you have there that you added?
rgleason is offline   Reply With Quote
Old 22-12-2017, 00:33   #1164
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing

Quote:
Originally Posted by rgleason View Post
If it is my compile environment, it isn't the main serup. I've complied and run opencpn with no problem.

So it could be a missing a file in buildwin, or build. -What files do you have there that you added?
In buildwin I have just NSIS.template.in (the file from the git, unmodified)

In build I've copied opencpn.lib 137692 bytes, sha1sum:
Code:
f87c334c7c70e213807fe11e7508917e4c820b10 *opencpn.lib
You can get my version from: http://popies.net/tmp/opencpn.zip

I have compiled the plugin by doing:
Code:
mkdir build
cd build
cmake -Wno-dev -G "Visual Studio 12 2013" -T "v120_xp" -D CMAKE_CXX_FLAGS=/MP -D CMAKE_C_FLAGS=/MP ..
cmake --build . --config release
cpack
stelian is offline   Reply With Quote
Old 22-12-2017, 06:42   #1165
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

Stelian, Thank you!
This morning I tried removing my local repository and cloning again.
Setting up remotes to stelian42 and seandepagnier and upstream to sean.
Then git fetch to each and reset hard and compile. I did that 3 times for each repos and they all compiled and installed and would route, but would not Edit Polar Edit Dim TAB.

Then I saw your post downloaded the opencpn.lib and the SHA1 checked out. That did not seem to make a difference either. (my local build and buildwin are same as yours). So then I tried your cmake line:

Quote:
cmake -Wno-dev -G "Visual Studio 12 2013" -T "v120_xp" -D CMAKE_CXX_FLAGS=/MP -D CMAKE_C_FLAGS=/MP ..
and that did the trick using your source code!
Normally I use
Quote:
cmake -T v120_xp ..
Obviously there is more to learn. What does your cmake do that mine does not do?

-- I am going to try yours using my "master" branch now.

Thanks so much. This had me totally stymied! I was thinking I'd have to rebuild my entire github folder
rgleason is offline   Reply With Quote
Old 22-12-2017, 06:49   #1166
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing

Quote:
Originally Posted by rgleason View Post
What does your cmake do that mine does not do?
Frankly I do not know. This comes from Transmitterdan's BatchUTILS, config.bat I believe.

Glad you have a working configuration now !
stelian is offline   Reply With Quote
Old 22-12-2017, 07:25   #1167
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

Made a PR from
stelian --> rgleason git repos of the po & pot branch --. automatic merge.
hakan --> rgleason git repos of his po & pot branch --- Won't auto merge conflicts

https://github.com/rgleason/weather_routing_pi/pull/2
Conflicting files

po/fr.po
po/weather_routing_pi.pot

Here is a comparison of my repos master to hakan's new branch..

https://github.com/rgleason/weather_...ansv:po_update
rgleason is offline   Reply With Quote
Old 22-12-2017, 07:42   #1168
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

I'm just learning some of this. It looks like my repos now has your
po updates.

https://github.com/rgleason/weather_...french-updates
rgleason is offline   Reply With Quote
Old 22-12-2017, 07:42   #1169
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: Weather Routing Bug when creating Track in track manager of OCPN

Hello Sean, hello All,

I realized yet another test with the latest version of WR uploaded by Stelian. I specify that, unless error on my part, the bug that I report here also exists with the previous version.

WR actually uses a virtual boat to work. And, if the calculations end well, the result is a virtual track. We can export this virtual track and we get a real track in the OpenCPN track manager.

I created a virtual track by loading a new grib file and using the same boat configuration as in my last test, so, especially with the figaro2 boat. This boat has the advantage of having very complete polar, which excludes polar anomalies.

See the first screenshot.

Then, I export the virtual track. So I got a real track in the Routes and Tracks manager. In the track manager, I select this real track, and I transform it into a route (So into a real route).

The following screenshots show:
- The coordinates of the start-point and that of the End-point, as they appear in WR.
- The coordinates of the start-point of the route and the coordinates of the end-point of the route.

The start-point in WR and the start-point in the route of the route manager are identical (small difference due to rounding in the route manager, this is not a problem)
BUT
The end-point in WR and the end-point in the route manager are different. This is not the same point.

Explanation:
When exporting the virtual track, the real track that appears in the track manager does not end at the end-point entered in WR. It ends at the last waypoint just before WR's End-point. In other words, the end of the virtual track miraculously disappears .....

This seems to me to be a BUG.

Gilletarom
Attached Thumbnails
Click image for larger version

Name:	WR_Route.jpg
Views:	63
Size:	290.9 KB
ID:	160876   Click image for larger version

Name:	WR_Route_Start_point.jpg
Views:	59
Size:	84.1 KB
ID:	160877  

Click image for larger version

Name:	WR_RouteEnd_point.jpg
Views:	52
Size:	80.1 KB
ID:	160878   Click image for larger version

Name:	OCPN_Created-route _Proprerties_End_point.jpg
Views:	74
Size:	21.3 KB
ID:	160879  

Click image for larger version

Name:	OCPN_Created-route _Proprerties_Start_point.jpg
Views:	53
Size:	58.3 KB
ID:	160880  
Gilletarom is offline   Reply With Quote
Old 22-12-2017, 07:49   #1170
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Weather Routing

Ok now my git master has merged all PR except Hakan's
I can now use it locally and compile.
rgleason is offline   Reply With Quote
Reply

Tags
paracelle, weather


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
Yachts in transit - new system for weather, blogging, diving, walking tracking sail-fish Navigation 13 22-05-2016 15:57
SSB Weather info VirtualVagabond General Sailing Forum 8 15-01-2016 08:40
Optimum SSB/satphone combo setup tulsag Marine Electronics 33 30-04-2012 07:19
MaxSea Weather Routing svrevelations Weather | Gear, Reports and Resources 12 10-10-2011 01:08
Sea Myths and Sayings Mariners The Sailor's Confessional 5 29-09-2011 13:51

Advertise Here


All times are GMT -7. The time now is 04:35.


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.