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 08-07-2014, 22:36   #1
Registered User

Join Date: May 2012
Posts: 1,197
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:	801
Size:	92.8 KB
ID:	84674  
Attached Files
File Type: doc OTCurrent_pi.dll.doc (172.5 KB, 248 views)
File Type: doc OTCurrent_Quick_Start_Guide.txt.doc (1.4 KB, 310 views)
Rasbats is offline   Reply With Quote
Old 09-07-2014, 03: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, 193 views)
File Type: pdf TideSF0.pdf (96.7 KB, 122 views)
File Type: pdf TideSF2.pdf (91.8 KB, 99 views)
File Type: pdf TideSF3.pdf (95.6 KB, 114 views)
Gnomon is offline   Reply With Quote
Old 09-07-2014, 04:35   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,624
Images: 2
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, 05:49   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,624
Images: 2
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, 10:04   #5
Registered User

Join Date: May 2012
Posts: 1,197
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, 09:24   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,624
Images: 2
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, 10:49   #7
Registered User

Join Date: May 2012
Posts: 1,197
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, 13:19   #8
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
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, 13:35   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,624
Images: 2
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, 14:44   #10
Registered User

Join Date: May 2012
Posts: 1,197
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, 131 views)
Rasbats is offline   Reply With Quote
Old 07-08-2014, 15:20   #11
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
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 offline   Reply With Quote
Old 13-11-2014, 14:32   #12
Registered User

Join Date: May 2012
Posts: 1,197
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, 101 views)
Rasbats is offline   Reply With Quote
Old 14-11-2014, 16:21   #13
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OTCurrent Plugin

It is working for me under linux.

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

Join Date: May 2012
Posts: 1,197
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, 00:31   #15
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 491
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 Search this Thread
Search this Thread:

Advanced Search
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
Plugin: DashBoard SethDart OpenCPN 644 02-04-2024 16:55
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
BSB 4 PlugIn bdbcat OpenCPN 98 25-04-2018 18:46
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 16:09

Advertise Here


All times are GMT -7. The time now is 17:28.


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.