Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 13-02-2019, 12:23   #1
Marine Service Provider

Join Date: Mar 2014
Posts: 7
OpenCPN Weather Routing Plugin error

I'm running into a problem when I try to compute a weather routing using OpenCPN (ver 4.8.8) with prlugings Weather Routing (ver 1.0) and Grib (4.1).

I start and end the route in a body of water (Lake Michigan) well away from Land. I have the GSSGH high res maps install (and all other maps disabled).


The routing works for a few miles and than stops with error "Polar: Land: Error".


I would love to attach a zip file with the Grib file, the weatherroutingconfiguration.xml, Boat_J109.xml and polars file used. I can't figure out on how to attache a zip file. Forum doesn't seem to support zip files.


Any help / suggestions?

Thx Volker




weatherroutingconfiguration.xml
HTML Code:
<?xml version="1.0" encoding="utf-8" ?>
<OpenCPNWeatherRoutingConfiguration version="1.10" creator="Opencpn Weather Routing plugin">
    <Position Name="Start" Latitude="42.08300" Longitude="-87.43667" />
    <Position Name="Finish" Latitude="45.76850" Longitude="-85.81900" />
    <Configuration Start="Start" StartDate="2/13/2019" StartTime="2:07:00 PM" End="Finish" dt="3600" Boat="D:\My Documents\Google Drive\Sailing\Zigzag-269\Boat_J109.XML" Integrator="0" MaxDivertedCourse="90" MaxCourseAngle="180" MaxSearchAngle="120" MaxTrueWindKnots="30" MaxApparentWindKnots="30" MaxSwellMeters="20" MaxLatitude="90" TackingTime="0" WindVSCurrent="0" AvoidCycloneTracks="0" CycloneMonths="1" CycloneDays="0" UseGrib="1" ClimatologyType="4" AllowDataDeficient="0" WindStrength="1" DetectLand="1" DetectBoundary="0" Currents="0" InvertedRegions="0" Anchoring="0" FromDegree="0" ToDegree="180" ByDegrees="5" />
</OpenCPNWeatherRoutingConfiguration>




Boat_J109.xml
HTML Code:
<?xml version="1.0" encoding="utf-8" ?>
<OpenCPNWeatherRoutingBoat version="1.10" creator="Opencpn Weather Routing plugin">
    <Polar FileName="D:\My Documents\Google Drive\Sailing\Zigzag-269\J109-ZigZag_150Jib_120Spin.csv" CrossOverContours="C:\ProgramData\opencpn\plugins\weather_routing\contours\D:!?!My Documents!?!Google Drive!?!Sailing!?!Zigzag-269!?!J109-ZigZag_150Jib_120Spin.csv.contours" CrossOverPercentage="0" />
</OpenCPNWeatherRoutingBoat>
volkerpetersen is offline   Reply With Quote
Old 14-02-2019, 12:56   #2
Registered User

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

Rename the zip file to .doc or .pdf and you will be able to attach it.
stelian is offline   Reply With Quote
Old 15-02-2019, 05:50   #3
Marine Service Provider

Join Date: Mar 2014
Posts: 7
Re: OpenCPN Weather Routing Plugin error

please find attached all related files in Downloads.zip.pdf, a zip file that I renamed to *.pdf in order to allow the upload. Thanks Stelian for your tip.
volkerpetersen is offline   Reply With Quote
Old 15-02-2019, 05:52   #4
Marine Service Provider

Join Date: Mar 2014
Posts: 7
Re: OpenCPN Weather Routing Plugin error

please find attached all related files in Downloads.zip.pdf, a zip file that I renamed to *.pdf in order to allow the upload. Thanks Stelian for your tip
Attached Files
File Type: pdf Downloads.zip.pdf (376.2 KB, 53 views)
volkerpetersen is offline   Reply With Quote
Old 15-02-2019, 06:34   #5
Registered User

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

This one is strange. I have reproduced the issue, and it looks like the route doesn't want to go across the 43th N parallel, as if is was some land there (but obviously it is not).


Looks like a bug.
stelian is offline   Reply With Quote
Old 15-02-2019, 14:32   #6
Marine Service Provider

Join Date: Mar 2014
Posts: 7
Re: OpenCPN Weather Routing Plugin error

If I change the weather routing route Start from 42.083N to 43.083N then the program stops with the same error as above at 44N. Thus, same result. It won't cross into the next degree N.
Any help / thoughts on what is going on here?
volkerpetersen is offline   Reply With Quote
Old 15-02-2019, 15:59   #7
Registered User

Join Date: Jun 2015
Posts: 379
Re: OpenCPN Weather Routing Plugin error

Quote:
Originally Posted by volkerpetersen View Post
If I change the weather routing route Start from 42.083N to 43.083N then the program stops with the same error as above at 44N. Thus, same result. It won't cross into the next degree N.
Any help / thoughts on what is going on here?
Likely a bug in land detection, it works if you disable detect land and use boundary.
Attached Thumbnails
Click image for larger version

Name:	wr_2019-02-16_00-56-02.png
Views:	183
Size:	178.5 KB
ID:	185995  
did-g is offline   Reply With Quote
Old 17-02-2019, 08:47   #8
Registered User

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

It looks like it only happens in inland waters.



I have isolated a test case, maybe this will help somebody to debug the issue:


gshhsCrossesLand(42.75, -86.50, 43.25, -87.50) returns true, but it obviously should return false...
stelian is offline   Reply With Quote
Old 17-02-2019, 13:03   #9
Registered User

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

Ok, I dug through the code and finally found out that this behaviour is "normal".


Reading about GSHHG (GSHHG - A Global Self-consistent, Hierarchical, High-resolution Geography Database) shows that data is organised in several "levels", level 1 being "boundary between land and ocean, except Antarctica.", the other levels dealing with lakes, islands in lake, Antarctica etc.


And guess what ? Although all the levels are drawn on the screen, only the first level is considered for the "crossing earth" test (notice the usage of poly1 in src/gshhs.cpp around line 744.


So you cannot detect the land boundaries while in inland lakes (or Antarctica btw).


I'm not sure it would be useful to add this detection, and what would be the price performance wise.


But it sure is a surprising behaviour for the users !


Stelian.
stelian is offline   Reply With Quote
Old 17-02-2019, 14:43   #10
Registered User
 
rgleason's Avatar

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

Stelian, good detection! Thank you.
rgleason is online now   Reply With Quote
Old 22-06-2021, 22:09   #11
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,865
Re: OpenCPN Weather Routing Plugin error

So what's the answer to this? I'm having this very problem in the Baltic Sea. If I turn off land detection and turn on boundary detection, the computation fails because "boundary data not available". If I turn both off, it routes me over land.


And for some reason the route ends short of the destination. Can't find anything in the manual
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is offline   Reply With Quote
Old 23-06-2021, 03:27   #12
Registered User
 
rgleason's Avatar

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

Filed an issue.
https://github.com/rgleason/weather_...g_pi/issues/71
Have an option to turn on land detection for inland waters?


The quicker answer is to make an Ocpn-Draw Boundary and use that.
rgleason is online now   Reply With Quote
Old 23-06-2021, 13:47   #13
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,865
Re: OpenCPN Weather Routing Plugin error

Quote:
Originally Posted by rgleason View Post
Filed an issue.
https://github.com/rgleason/weather_...g_pi/issues/71
Have an option to turn on land detection for inland waters?


The quicker answer is to make an Ocpn-Draw Boundary and use that.
Ok, thanks. But I didn't have this problem last year, in the exact same place
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is offline   Reply With Quote
Old 23-06-2021, 14:27   #14
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,865
Re: OpenCPN Weather Routing Plugin error

I've tried it again from a different position, with no land in between, and it fails on "Grib Failure". I thought -- OpenCPN can use the compressed gribs that I get but the plug in can't. Fair enough -- I extracted them and loaded them. Still no go. Played with all possible parameters ini Edit Settings.



Checked that times of the gribs cover all possible times in the routing -- they do (week of gribs and fresh download; 2 or 3 days of sailing for the route).



Maybe I should go back to an earlier version?
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is offline   Reply With Quote
Old 23-06-2021, 14:28   #15
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Helsinki (Summer); Cruising the Baltic Sea this year!
Boat: Cutter-Rigged Moody 54
Posts: 33,865
Re: OpenCPN Weather Routing Plugin error

Quote:
Originally Posted by rgleason View Post
Filed an issue.
https://github.com/rgleason/weather_...g_pi/issues/71
Have an option to turn on land detection for inland waters?


The quicker answer is to make an Ocpn-Draw Boundary and use that.

Thanks; I'll try that if I get another land failure.
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is offline   Reply With Quote
Reply

Tags
enc, opencpn, plug, 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
opencpn weather routing plugin not found usodimare OpenCPN 11 31-12-2019 03:27
opencpn weather routing gipsy541 OpenCPN 3 11-12-2016 07:10
OpenCPN Weather Routing akkmi OpenCPN 2 08-08-2016 04:07
Opencpn 4.4.0 - Weather Routing "Grib Plugin Not Supported" TiOlivier OpenCPN 7 22-07-2016 06:22
OpenCPN Weather Routing rtace on the land max59 OpenCPN 4 03-03-2016 04:26

Advertise Here


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


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.