Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 17-03-2013, 15:46   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Code:
C:\...\opencpn-git>git checkout master
Previous HEAD position was f13e4b8... routing corrections, and current direction
 correction
Switched to branch 'master'
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

C:\...\opencpn-git>git fetch --all
Fetching origin
Fetching sean

C:\...\opencpn-git>git pull
Updating 36c7f6a..56c1de5
Fast-forward
 include/options.h   |  6 +++---
 po/opencpn_nl_NL.po |  2 +-
 src/options.cpp     | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)

C:\...\opencpn-git>git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/beta30_stable
  remotes/origin/beta31_stable
  remotes/origin/master
  remotes/origin/release32_stable
  remotes/origin/stable
  remotes/sean/beta30_stable
  remotes/sean/beta31_stable
  remotes/sean/grib_enhancements
  remotes/sean/master
  remotes/sean/stable

C:\...\opencpn-git>git checkout sean/grib_enhancements
Previous HEAD position was 56c1de5... Merge pull request #41 from kheyse/dutch_localization_fix
HEAD is now at f13e4b8... routing corrections, and current direction correction

C:\...\opencpn-git>branch -a
'branch' is not recognized as an internal or external command,
operable program or batch file.
Now what? Can't seem to get it to point to sean/grib_enhancements
__________________

__________________
rgleason is offline   Reply With Quote
Old 17-03-2013, 16:39   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Quote:
There is no grib_enhancements directory. grib_enhancements is the name of the branch in my forked OpenCPN repository on github. You will know if you have the grib enhancements because you will be using version 2.1 of the grib plugin (see in the plugin setup)

As for the zlib.h thing.. how did you ever compile the original grib plugin in the first place?[/CODE]The other errors are informative I should basically have them all fixed in the next revision
Compiled it. both in CMD window and MSVC. See attached files.
I copied the compiled opencpn-git/build/plugins/debug/grib_pi dll into the
build/plugins directory

Then brought up Opencpn in Debug and found Grib_pi Version 2.1!!!
So I do have the correct branch now.

About the zlib.h "cannot open"" There are grib-pi\src\Zufile.h [33] references in the attached files looking for zlib.h.

I will git checkout master and then do a search for the file next.
Also attached is an image from the grib_pi (enhanced). Pretty nice!
Attached Thumbnails
Click image for larger version

Name:	Grib_pi-enhanced.jpg
Views:	218
Size:	380.6 KB
ID:	57230  
Attached Files
File Type: doc weather_routing_pi.log.doc (4.4 KB, 56 views)
File Type: doc Weather_routiing-MSVC-build-Release-Output.doc (11.6 KB, 54 views)
File Type: doc Weather_routiing-MSVC-build-Output.doc (9.0 KB, 31 views)
File Type: doc Weather_routiing_CMD-build-Output.doc (16.4 KB, 40 views)
__________________

__________________
rgleason is offline   Reply With Quote
Old 17-03-2013, 18:05   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Code:
C:\...\opencpn-git>dir *zlib.h /s
 
 Directory of C:\Data-Dart\Up-Soft\Navigation\opencpn-git\plugins\grib_pi\src\bzip2

03/11/2013  07:34 AM             7,833 bzlib.h
               1 File(s)          7,833 bytes

 Directory of C:\...\opencpn-git\plugins\grib_pi\src\zlib-1.2.3
03/11/2013  07:34 AM            66,188 zlib.h
               1 File(s)         66,188 bytes

     Total Files Listed:
               2 File(s)         74,021 bytes
               0 Dir(s)  368,137,146,368 bytes free

C:\Data-Dart\Up-Soft\Navigation\opencpn-git>
Hope this answers the question about zlib.h
__________________
rgleason is offline   Reply With Quote
Old 17-03-2013, 18:20   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Sean,

Regarding Polauto Polar Filtering and Polar Diagram creation from real Nmea data.

First some threads on Cruisers Forum Ocpn

PCSail - Excel sheet to make VPP for Sailing yachts

Test Polauto by using OpenCpn w/o instruments

This Post has the links and program.
Test Polauto by using OpenCpn w/o instruments

Hope you find it interesting.
One of recent ideas was to store a data point cloud show it on a screen and store it (allowing control by user on and off) and then have the program run the file and do curve fitting to get the polars, because the variables are just that very variable.
__________________
rgleason is offline   Reply With Quote
Old 17-03-2013, 18:30   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Here is the other longer development thread on hisse-et-oh.com
__________________
rgleason is offline   Reply With Quote
Old 18-03-2013, 04:46   #21
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,673
Re: weather routing

Quote:
Originally Posted by cagney View Post
Testing on Kubuntu 12.10 amd64.
No problems compiling and getting started.

Attachment 57183

I can't see the lower part of the dialog above.
Clicking "Generate" freezes the computer. Had to force a "xkill".
I fixed that, but its probably if you entered an invalid step size, or left the box blank
Quote:
Attachment 57184

The basic concept works, as seen above.
I could not get the hang of entering departure and destination by clicking, so I entered it manually.
Check the yellow route...Computation continues inland between "The Wash" and "River Humber".
As you said, slow, but a very nice start.
Thanks for all your fantastic plugins!!!

Thomas
Hmm.. looks like a 0 meridian issue possibly. You have a really small step size.. my computer would take an hour or more to generate that! Anyway, I improved the threading a lot, and I estimate approximately 4x speedup should be doable, possibly more. Added plotting today, and it can convert the route into an opencpn track.
__________________
boat_alexandra is offline   Reply With Quote
Old 18-03-2013, 12:41   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

I realized git checkout was not working all the time, and it was causing problems when I went to use sean/grib_enhancements so this post is what I did after a bit of a struggle to get the branch pointer to move from *no branch or *origin/master.

When I got onto sean/grib_enhancements and from plugins directory git clone weather_routing_pi and then cmake from the CMD prompt. See output.

Then went to MSVC and ran Build Debug and Build Release. See output.

Then found a "DATA" file like the one for Celestial_Nav in opencpn-git/plugins/weather_routing_pi/DATA so I copied that to opencpn-git/build/weather_routing (new directory)

The I reran MSVC Debug. See output file.

Weather_routing failed. several problems. isnan zufile(33) etc. The Plugin did not seem to compile

Have Grib 2.1 running and it seems to work ok. Haven't tested it much lately.
__________________
rgleason is offline   Reply With Quote
Old 19-03-2013, 04:29   #23
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,673
Re: weather routing

Good to see some progress. So the grib compiles fine at least. I am taking note of your reports so the errors should mostly go away with the next version.

Give me a few days for weather routing.. I have been optimizing it. Today now it is something like 8 times faster, but I know I can make it twice as fast very easily.. the tricky bit is to make it another 8 times faster which requires some work..
__________________
boat_alexandra is offline   Reply With Quote
Old 19-03-2013, 13:13   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Thats fine Sean. I don't know how you do so much at once, I wouldn't be able to keep it straight. I think you'll also get the celestial_nav the next time, too. Just let me know...also what files you prefer..
  1. Debug or Release? (output, log files, error files) Is one or the other better? --DEBUG files?
  2. Output file if it does not compile successfully.
  3. ../build/plugins/<plugin name>.dir/debug/<pluginname>. log?
  4. c:/programdata/opencpn/ opencpn.log and opencon.ini -When?
  5. Screen shot of failure? When?
I'd like to cut down on files uploaded, so some ground rules would be helpful. Thanks. I'm getting better at this I think.



Best
__________________
rgleason is offline   Reply With Quote
Old 19-03-2013, 15:44   #25
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,673
Re: weather routing

Quote:
Originally Posted by rgleason View Post
Thats fine Sean. I don't know how you do so much at once, I wouldn't be able to keep it straight. I think you'll also get the celestial_nav the next time, too. Just let me know...also what files you prefer..
  1. Debug or Release? (output, log files, error files) Is one or the other better? --DEBUG files?
  2. Output file if it does not compile successfully.
  3. ../build/plugins/<plugin name>.dir/debug/<pluginname>. log?
  4. c:/programdata/opencpn/ opencpn.log and opencon.ini -When?
  5. Screen shot of failure? When?
I'd like to cut down on files uploaded, so some ground rules would be helpful. Thanks. I'm getting better at this I think.



Best
Just send build log if it doesn't compile, and stack trace if it crashes..

Usually use debug, but if debug works and release doesn't you could send release
__________________
boat_alexandra is offline   Reply With Quote
Old 20-03-2013, 04:48   #26
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,673
Re: weather routing

So uh I got the inverted routes working better. I couldn't get qtvlm to even pretend to do this, and I doubt most other weather routing supports it.. It can find local minimas like locations that are completely surrounded by locations that take less time to reach.

It took me 2 hours to change the last 5 characters, its getting to be extremely difficult to debug. Also the logic is more than twice as complex just to support this... see the cyan lines are inverted.. you can sail around the island faster than making it back into bay of plenty.. so its a local minimum, but can be reached all the same.
__________________
boat_alexandra is offline   Reply With Quote
Old 20-03-2013, 05:29   #27
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,673
Re: weather routing

____________
Attached Thumbnails
Click image for larger version

Name:	InvertedRoutes.png
Views:	225
Size:	255.0 KB
ID:	57408  
__________________
boat_alexandra is offline   Reply With Quote
Old 20-03-2013, 06:25   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Should I try to compile it now?
__________________
rgleason is offline   Reply With Quote
Old 20-03-2013, 18:06   #29
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

Did not compile.
Attached Files
File Type: doc Weather_routing-CMD-output.doc (15.8 KB, 43 views)
File Type: doc Weather_routing-MSVC-Debug-output.doc (7.1 KB, 35 views)
__________________
rgleason is offline   Reply With Quote
Old 23-03-2013, 12:23   #30
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,082
Re: weather routing

While I was in the other branch, I thought I would git clone WxRt & build in hopes it would compile. Unfortunately it didn't. I guess you're working on it. All the others plugins seem to compile better. Thanks.
Attached Files
File Type: doc WxRoute-MSVC-Build-One-Failed-Output.doc (7.7 KB, 46 views)
__________________

__________________
rgleason 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 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 Revelations 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


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 06:33.


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.