Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-07-2014, 23:36   #1
Registered User

Join Date: May 2012
Posts: 405
OTCurrent Plugin

Using code from the UK waters tcurrent plugin that was made for VisitMyHarbour.com I have made an alpha version of a tidal current plugin for U.S. waters.

Only Windows at the moment but it will be available for Linux. Totally open source!!! Code will be available from GitHub later.

Works with version OpenCPN 3.2.2 upwards.

Due to other commitments not much will change for a few months. However feedback is welcome, to incorporate into a beta version.

Remove .doc from the plugin .dll file and copy to the plugins folder.

A Quick Start guide is attached. Please remove the .doc extension.

Please test to destruction!

Mike
Attached Thumbnails
Click image for larger version

Name:	OTCurrent_Screenshot.PNG
Views:	405
Size:	92.8 KB
ID:	84674  
Attached Files
File Type: doc OTCurrent_pi.dll.doc (172.5 KB, 125 views)
File Type: doc OTCurrent_Quick_Start_Guide.txt.doc (1.4 KB, 155 views)
__________________

__________________
Rasbats is offline   Reply With Quote
Old 09-07-2014, 04:55   #2
Registered User

Join Date: Mar 2013
Location: Germany
Posts: 38
Re: OTCurrent Plugin

Tested with WIN7, Bay of SF, with AIS (HD-SF), OpenGL and no OpenGL:
Used background-chart.
TideSF1: OpenGL, no text, blue arrows have no contrast
TideSF0: Shows "OCPN2 tides", OpenGL
TideSF2 and ...3: No OpenGL, two differend times, arrows with several colors, speed and direction of tidal-current is shown, contrast to blue water is low.
Test with CM93-2 is also ok.
British data, off Cowes / Solent, do not work
For the future? Automatic, selectable time-difference to ship's.

Thanks for your good work.
Gnomon
Attached Files
File Type: pdf TideSF1.pdf (75.7 KB, 77 views)
File Type: pdf TideSF0.pdf (96.7 KB, 58 views)
File Type: pdf TideSF2.pdf (91.8 KB, 40 views)
File Type: pdf TideSF3.pdf (95.6 KB, 41 views)
__________________

__________________
Gnomon is offline   Reply With Quote
Old 09-07-2014, 05:35   #3
Registered User
 
rgleason's Avatar

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

Thank you Mike, this plugin promises to be a very welcome addon with essential convenient planning features! We can now easily move forward in time and see Tides! I had just ignored the tides in Opencpn until now.

Your plugin generates many ideas for tidal improvements! So please forgive me if I speed ahead too fast.

In many respects this plugin is like the grib viewer, but it is using a tidal database, so is it possible to use some of the control aspects of that plugin with Tides plugin?

For example, I really like the feature in Grib where you can locate your cursor in the time window and the simply use your mouse wheel to scroll back and forth through time. The calendar popup for setting date is very useful for planning trips, but once done with that, the wheel scroll feature would be useful.

I am sure there are some other features for playback that would be useful. Say you could set a time line progress bar to be "Day", "Week", or perhaps "Month" and then play it at an adjustable speed during that timeline....just and idea.

Tide Overlap Map with Slack tide location shown as a fat line.
Another idea is the ability to represent the tidal forces not only as a Vector with direction and speed indication, but as a shaded overlay which has the fastest incoming tidal areas darker green and the faster outgoing area darker red, with the zones between gradient shades (the areas between actual tide data would be interpolated like the grib files). (Climatology does this type of gradient shading with all of its datatypes using opengl.)
Some of the information that would come out of this overlay would be the areas of slack tide which is a broad area that changes location with the changing of tide, and thus it in and out of bays and large bodies of water.

Planning using the slack tide can be very useful sometimes, for example you can catch an outgoing tide in Long Island and if you can make it to near Brenton Light Newport sometime around slack, you can then catch the incoming tide and get a significant push up into Buzzards Bay. The Tide overlay with a planned routing showing boat's future location (based on weather_routing and grib data/route, or based on a more simple estimated STW) would visually show this effect. I think it could be an excellent planning tool.

Mike, Thank you for providing us with this plugin.
__________________
rgleason is offline   Reply With Quote
Old 03-08-2014, 06:49   #4
Registered User
 
rgleason's Avatar

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

Mike,
Do you think there would be a way to convert output to grib files that could be used by weather_routing?

Is there a code repos somewhere?
__________________
rgleason is offline   Reply With Quote
Old 04-08-2014, 11:04   #5
Registered User

Join Date: May 2012
Posts: 405
Re: OTCurrent Plugin

Rick,

Thanks for the input.

This project will have to go on hold for about 3 months. The UK MCA Compass Adjuster's Certificate training is taking a lot of my time at the moment!

Mike
__________________
Rasbats is offline   Reply With Quote
Old 07-08-2014, 10:24   #6
Registered User
 
rgleason's Avatar

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

Mike, sorry to hear that, there's lots of potential here. Good luck on your Compass adjusters cert.
__________________
rgleason is offline   Reply With Quote
Old 07-08-2014, 11:49   #7
Registered User

Join Date: May 2012
Posts: 405
Re: OTCurrent Plugin

The code is now on GitHub.

https://github.com/Rasbats/OTCurrent_pi

No more work can be done on this at the moment.

The colours for the arrows need to be changed. At the moment the blue colour makes viewing on NOAA charts difficult.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 07-08-2014, 14:19   #8
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: OTCurrent Plugin

Quote:
Originally Posted by Rasbats View Post
The code is now on GitHub.

https://github.com/Rasbats/OTCurrent_pi

No more work can be done on this at the moment.

The colours for the arrows need to be changed. At the moment the blue colour makes viewing on NOAA charts difficult.

Mike
The code will not compile for Linux. One reason is that the names of many files in the src are otcxyz while these files in the code are referred to as OTCxyz. otc != OTC in any Unix like operating system.

Thomas
__________________
cagney is offline   Reply With Quote
Old 07-08-2014, 14:35   #9
Registered User
 
rgleason's Avatar

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

Mike,
Thank you for uploading, perhaps some can help get it to compile for Linux too
__________________
rgleason is offline   Reply With Quote
Old 07-08-2014, 15:44   #10
Registered User

Join Date: May 2012
Posts: 405
Re: OTCurrent Plugin

Thanks Thomas.

And thanks Pavel.

I have, perhaps, lower cased all the OTC. Please can you have another look.

https://github.com/Rasbats/otcurrent_pi

The code used grib_pi as a template, so there is a lot of stuff that could be stripped out for starters.

An updated Windows dll is attached. Just remove the .doc.

Mike
Attached Files
File Type: doc otcurrent_pi.dll.doc (172.5 KB, 54 views)
__________________
Rasbats is offline   Reply With Quote
Old 07-08-2014, 16:20   #11
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OTCurrent Plugin

Mike...
Like it better lowercase, https://github.com/Rasbats/otcurrent_pi/pull/1 is updated to be mergeable with your changes...

Pavel
__________________
nohal is online now   Reply With Quote
Old 13-11-2014, 15:32   #12
Registered User

Join Date: May 2012
Posts: 405
Re: OTCurrent Plugin

Finally ... compiled for Linux ... the plugin is attached (remove .pdf)

Code at https://github.com/Rasbats/otcurrent_pi

The main problem was textCtrl. SetLabel is not the same as SetValue when using gcc. The VC2010 compiler seems to be blind to the difference.

Tidal current arrows < 0.5 knots are now coloured violet instead of blue to show up better.

A lot of rubbish still has to be deleted from the code. (B*****y amateurs!)

I would appreciate more feedback before doing further work on this plugin. Please be picky!!!

TODO:
1. Change icon for plugin
2. Make 'Select' button bigger (This changes the start date/time)
3. And the stuff in the other posts

Mike
Attached Files
File Type: pdf libotcurrent_pi.so.tar.gz.pdf (553.6 KB, 46 views)
__________________
Rasbats is offline   Reply With Quote
Old 14-11-2014, 17:21   #13
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OTCurrent Plugin

It is working for me under linux.

I have tide stations in japan.. why won't the plugin render there?
__________________
boat_alexandra is offline   Reply With Quote
Old 15-11-2014, 03:07   #14
Registered User

Join Date: May 2012
Posts: 405
Re: OTCurrent Plugin

Sean,

Do you have a link for Japanese Tidal Current data? I have not been able to find this.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 16-11-2014, 01:31   #15
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 407
Re: OTCurrent Plugin

Hi,

A project has been created in Tracker/FLyspray for this plugin : OT Current

Do not hesitate to enter any Feature Requests, any Bugs...

Serge
__________________

__________________
AISEAG is offline   Reply With Quote
Reply

Tags
current, plug

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
OpenCPN PlugIn Development bdbcat OpenCPN 78 29-07-2017 03:15
Plugin: DashBoard SethDart OpenCPN 470 24-08-2016 21:34
BSB 4 PlugIn bdbcat OpenCPN 93 20-02-2016 04:41
New History Plugin for OpenCPN boat_alexandra OpenCPN 11 04-10-2010 15:11
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 17:09



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.