Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 27-06-2013, 06:28   #301
ahi
Registered User

Join Date: Jun 2013
Location: Austria
Posts: 6
Re: Weather Routing

Hi!

I have rebuild OpenCPN, climatology and weather routing from git as of now (2013-6-27, ~12:00 UTC) and also have new data downloaded for climatology. I am able to view current and prevalent wind without a Problem.

When I start weather routing, the error message "Climatology plugin version not supported..." resurfaces again and under routing configuration data source "Grib" and "Climatology" are both grayed out.

I have no current GRIB data, but IMO Climatology should still work!

After changing the version check in plugins/weather_routing_pi/src/weather_routing_pi.cpp line 235 to 0.3 i was able to succesfully find a route with climatology data.

Best regards
Andreas
__________________

__________________
ahi is offline   Reply With Quote
Old 27-06-2013, 06:50   #302
ahi
Registered User

Join Date: Jun 2013
Location: Austria
Posts: 6
Re: Weather Routing

Acces to new beta quality debian packages (Wheezy, amd64) is available via Index of /~ahi/OpenCPN

Andreas
__________________

__________________
ahi is offline   Reply With Quote
Old 27-06-2013, 07:31   #303
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

Quote:
I have rebuild OpenCPN, climatology and weather routing from git as of now (2013-6-27, ~12:00 UTC) and also have new data downloaded for climatology. I am able to view current and prevalent wind without a Problem.
-Good

Quote:
When I start weather routing, the error message "Climatology plugin version not supported..." resurfaces again and under routing configuration data source "Grib" and "Climatology" are both grayed out.
Might this be because you have not opened Climatology and you have not opened Grib with a recent Grib file?

Quote:
I have no current GRIB data, but IMO Climatology should still work!
If climatology is open, and you see data, there should be an checkbox that is not greyed to enable Climatology in Weather_routing Config

Quote:
After changing the version check in plugins/weather_routing_pi/src/weather_routing_pi.cpp line 235 to 0.3 i was able to succesfully find a route with climatology data.
Humm interesting, don't know why that was necessary. Will look in to it further. Please advise re conditions above. Sean is still available and I have not yet put most recent version up with changes from yesterday, trying to complete compiling of last set of changes.
__________________
rgleason is offline   Reply With Quote
Old 27-06-2013, 08:34   #304
ahi
Registered User

Join Date: Jun 2013
Location: Austria
Posts: 6
Re: Weather Routing

Quote:
Originally Posted by rgleason View Post
Might this be because you have not opened Climatology and you have not opened Grib with a recent Grib file?
No GRIB data (on purpose), but Climatology was open and active. The new weatherrouting_pi checks for climatology 0.1 or 0.2; but climatology_pi is version 0.3 in git.

Andreas
__________________
ahi is offline   Reply With Quote
Old 27-06-2013, 08:41   #305
Registered User

Join Date: Aug 2010
Posts: 291
Re: Weather Routing

Quote:
Originally Posted by ahi View Post
No GRIB data (on purpose), but Climatology was open and active. The new weatherrouting_pi checks for climatology 0.1 or 0.2; but climatology_pi is version 0.3 in git.

Andreas
There was a code correction on the check of the climatology version. Strange this error still pops up.
__________________
George64 is offline   Reply With Quote
Old 27-06-2013, 13:01   #306
Registered User

Join Date: Aug 2010
Posts: 291
Re: Weather Routing

Hi,

I'm playing around with the polar option. It says it can load a file. I assume a CSV-file, however when I press 'open' in the polar tab, it show "XML Weather Routing (*.cvs)". Please notice the difference in the file extension. What should be the extension?

The other thing, what should be the lay-out of the polar data file?

thanks for your reply!
__________________
George64 is offline   Reply With Quote
Old 27-06-2013, 18:26   #307
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

George, I would suggest posting on Plugin Polar thread, and possibly look for Konni as he is the one who programmed it, and possibly send a private message if the messge will not be helpful to all, or if you'd like to compliment him or perhaps ask a technical question, or coordinate things.

I would suggest saving out a polar file and then try loading it. It sounds like it is in XML format which is an excellent format to use. He has probably made his own definition file for polar, as it is a process to get that officially approved, but that does not matter. Your editor if it is a decent one will show XML format in a very pretty fashion, indented, colored, etc. I believe Word willl also show this. Then open the file in your editor to see the format or perhaps EXcel. If you can show an example of the format on the Plugin Polar thread, and describe where line feeds and tabs etc are that might be helpful to all of us.

We will then have to compare this to the polar file needed for Weather_routing and perhaps we can get them to "round trip" easily.

When I get some time to look at this more closely, I will, but I have other things that must be done on Sean's plugins.
__________________
rgleason is offline   Reply With Quote
Old 28-06-2013, 07:37   #308
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

I'd like to confirm Ahi's report:
Quote:
"When I start weather routing, the error message "Climatology plugin version not supported..."
weather_routing_pi.cpp line 235 reads:
Quote:
if( major != 0 || (minor != 1 && minor != 2)) {
change it to
Quote:
if( major != 0 || (minor != 1 && minor != 3)) {
earlier in this thread I believe, Pavel made some suggestions which were to use a > sign. I'm going to look that up and post it below.

It appears Sean may have not picked up on ChuckSK's smart advice and programming and Pavel's suggestion to use a greater than sign. (Probably because we may be changing the Climatology Data set in the future, by adding other types of data!) thus using the greater than sign might not be a good idea?

Anyway I will recompile and update the plugins again once it is working. Ahi thankyou for your investigation and solution.
__________________
rgleason is offline   Reply With Quote
Old 28-06-2013, 07:50   #309
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

Found Pavel's Post 254 with his suggestions, after George64's suggestion.

Rick...
What George shows is exactly the place you have to touch, obviously 2 is not equal to 1, thus the warning you get with the current version...

The complete fix should probably look something like this to make it easier to maintain and not forget
In weather_routing_pi.h, say at line 35 add
Code:
#define MIN_COMPAT_CLIMATOLOGY_MAJOR 0 
        #define MIN_COMPAT_CLIMATOLOGY_MINOR 2
and if( major != 0 || minor != 1) { in weather_routing_pi.h:233 to

Code:
if( major < MIN_COMPAT_CLIMATOLOGY_MAJOR || minor < MIN_COMPAT_CLIMATOLOGY_MINOR) {
@George...


Since we know about this, I am just going to change the Minor number for now.
====

ChuckSK's suggestion was about a different problem: "This patch should fix the "list iterator not incrementable" assert error when executing the MSVC debug version of Weather Routing." Post 275 which I believe Sean changed.
__________________
rgleason is offline   Reply With Quote
Old 28-06-2013, 08:08   #310
Registered User

Join Date: Aug 2010
Posts: 291
Re: Weather Routing

The || opererator means OR, so:
Code:
#define MIN_COMPAT_CLIMATOLOGY_MAJOR 0 
        #define MIN_COMPAT_CLIMATOLOGY_MINOR 2
Code:
if( major < MIN_COMPAT_CLIMATOLOGY_MAJOR || minor < MIN_COMPAT_CLIMATOLOGY_MINOR) {
means if one of the two equations is true, the whole equation is true.

For example
if ( major < 0 || minor <2 )

major = 0
minor = 0
expression = T

major = 1
minor = 0
expression = T

major = 0
minor = 2
expression = F

major = 1
minor = 2
expression = F

major = 1
minor = 3
expression = F


IMHO you should also check in case the equation is less than or equal: =<

I don't know the rest of the code, does or does not the codeafter the if-statement needs to be executed.
__________________
George64 is offline   Reply With Quote
Old 28-06-2013, 08:12   #311
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,927
Re: Weather Routing

Rick...
It's not this simple... There actually might be a reason why weather_routing_pi refuses to work with climatology_pi 0.3. If not with the current codebase then with some changes Sean is planning to do. You can't simply change this and assume it will be ok unless you know why it's there...

Pavel
__________________
nohal is offline   Reply With Quote
Old 28-06-2013, 09:07   #312
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

After change of Weather_routing_pi.cpp line 235 from minor version "2" to "3".
in Release version Climatology data can be used. See Post #206
__________________
rgleason is offline   Reply With Quote
Old 28-06-2013, 09:13   #313
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

Pavel,

I think I might as well quit trying to nail down jello!!!
Why can't we get it working, freeze it for release, then do improvements later?
With Sean about to leave all the time, we get left with Climatology and Weather_routing stepping out of alignment with every version change for either plugin.

I do not intend to keep compiling this stuff, with different parts breaking all over the place and trying to pull it together.

===Also it seems to work, just as last time.
__________________
rgleason is offline   Reply With Quote
Old 28-06-2013, 09:28   #314
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,806
Re: Weather Routing

Also, I know we are still on Climate Data 6, because I have not had to do any changes for Sean.
__________________
rgleason is offline   Reply With Quote
Old 28-06-2013, 10:52   #315
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,132
Re: Weather Routing

Using the git code from yesterday, I have seen a couple of crashes when closing down the plugin.

Click image for larger version

Name:	route.png
Views:	55
Size:	91.7 KB
ID:	63287

Click image for larger version

Name:	route1.png
Views:	56
Size:	58.4 KB
ID:	63288

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Reply

Tags
paracelle, 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


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 16:57
SSB Weather info VirtualVagabond General Sailing Forum 8 15-01-2016 09:40
Optimum SSB/satphone combo setup tulsag Marine Electronics 33 30-04-2012 08:19
MaxSea Weather Routing Revelations Weather | Gear, Reports and Resources 12 10-10-2011 02:08
Sea Myths and Sayings Mariners The Sailor's Confessional 5 29-09-2011 14:51


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:24.


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.