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 21-06-2016, 07:45   #1
Registered User

Join Date: Aug 2012
Posts: 37
A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

Hi all,

for easy work with A.T.Tables, published in REEDS or in Tide Tables, i've created small OpenCPN plugin.
It allows to calculate tides on secondary ports having data from standard ports and differences of secondary ports how it is suppose to be done manually on paper.

Plugin is here: https://github.com/registry/admiralty_tide_tables_pi

Idea is simple: I want to simplify tedious part of tide calculation based on A.T.T. -> calculation itself.

Having REEDS for a given year, i do actually have most up-to-date calculation for most of ports and marinas, covered by the almanac. Problem is only the calculation.

Sofar i can easily type-in the data for some standard port and differences for secondary port of interest, press "calculate" and get my tide for secondary port at given date. Agreed, further work on this tide ( tide at given time, time or required depth and and and ) has to be done manually, but for the beginning it is already something if one has tide for secondary ports.

Input form of the plugin has a form and acronyms like it is in A.T.T or Reeds for simplicity.

For further ideas would be collecting calculated data in some offline/online data base so that one has to type in tides and differences only once... but it is not done yet.

This calculated/typed-in data could be shared via ... some file in same git repository or via some online database - don't know what is better.

If some one wants to contribute -> you are welcome.
If plugin gets published on opencpn page/plugins -> nice.
if someone wants to take over its maintenance and further development (without removing essential part -> working with Reeds/A.T.T ) -> great (i don't have much time to invest into it)
Feature requests/comments/improvements suggestions i will read, but do not promise to react on them immediately ( i don't have much time to invest into it)... only if they will be useful for my own usage while sailing... sorry for that.




Cheers,
Pavel


P.S.
I've developed it havin up-to-date opencpn build out of git/master.
Plugin is based on demo_pi, which i have taken as an example and modified it so long, till it started to calculate tides.
registry is offline   Reply With Quote
Old 21-06-2016, 16:52   #2
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,442
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

#0 0x00007ffff69a112b in wxAuiManager:etachPane(wxWindow*) ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0
#1 0x00007fffca353101 in att_pi:eInit (this=0x17a3e70)
at /home/sean/build/plugins/admiralty_tide_tables_pi/src/att_pi.cpp:138
#2 0x00000000008445d8 in PlugInManager:eactivatePlugIn (this=0x11d8400,
pic=0x3fd9000) at /home/sean/build/OpenCPN/src/pluginmanager.cpp:607
#3 0x0000000000845027 in PlugInManager:eactivateAllPlugIns (this=0x11d8400)
at /home/sean/build/OpenCPN/src/pluginmanager.cpp:705
#4 0x00000000005cccdb in MyFrame::OnCloseWindow (this=0x1137500, event=...)
at /home/sean/build/OpenCPN/src/chart1.cpp:3222
#5 0x00007ffff5cc01fe in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6 0x00007ffff5e466c7 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTable EntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7 0x00007ffff5e467bb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8 0x00007ffff5e46b6b in wxEvtHandler::TryHereOnly(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9 0x00007ffff5e46973 in wxEvtHandler:oTryChain(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff5e46c55 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#11 0x00007ffff5e469c7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#12 0x00007ffff656f5c7 in wxWindowBase::Close(bool) ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#13 0x00007ffff63790c4 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#14 0x00007ffff1a17afc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#15 0x00007ffff4b11fa5 in g_closure_invoke ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff4b23fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff4b2c7f9 in g_signal_emit_valist ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff4b2d08f in g_signal_emit ()
from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff1b2f8cc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007ffff1a1685d in gtk_main_do_event ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#21 0x00007ffff168ac4c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#22 0x00007ffff1147127 in g_main_context_dispatch ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff1147380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffff11476a2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff1a156a7 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#26 0x00007ffff6358ed5 in wxGUIEventLoop:oRun() ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#27 0x00007ffff5d02343 in wxEventLoopBase::Run() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#28 0x00007ffff5cc7666 in wxAppConsoleBase::MainLoop() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#29 0x00007ffff5d53f50 in wxEntry(int&, wchar_t**) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#30 0x00000000005befa0 in main (argc=1, argv=0x7fffffffde98)
at /home/sean/build/OpenCPN/src/chart1.cpp:831
seandepagnier is offline   Reply With Quote
Old 22-06-2016, 01:30   #3
Registered User

Join Date: Aug 2012
Posts: 37
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

thnx for feedback... i will obviously need it

i'm not familair with wxWidgets -> just try like "monkey sees, monkey does"

i've removed sag fault causing reference...

just to sync up
wx-vconfig --version: 3.0.2
opencpn version : head of master
g++ --version: 5.3.1-14ubuntu2.1
ubuntu 16.04 LTS
4.4.0-24-generic x86_64 GNU/Linux
registry is offline   Reply With Quote
Old 23-06-2016, 16:37   #4
Registered User

Join Date: Aug 2012
Posts: 37
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

For the future...

what at least should i do, so one considers to publish this plugin on opencpn.org ?

icons? docu? win/mobile/linux/macos builds?
registry is offline   Reply With Quote
Old 23-06-2016, 16:46   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,251
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

registry...
When reasonably confident that the plugin is ready for general usage, tag a release version in your github repository and let me know to pavel_at_kalian_dot_cz and I will get back to you if some problems are blocking the release.
No need to do the builds for any platform yourself, I do them anyway before publishing the plugins to make sure they are not completely broken...

Pavel
nohal is offline   Reply With Quote
Old 23-06-2016, 16:48   #6
Registered User

Join Date: Aug 2012
Posts: 37
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

roger that

P.S.
My real name is apropos is same :-) cheers... but online is online ;-)
registry is offline   Reply With Quote
Old 01-07-2016, 15:06   #7
Registered User

Join Date: Aug 2012
Posts: 37
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

Hi all,

little update.

I've added IO.
Now one has to input data for standard or secondary ports only once, save it and it gets loaded by next start of opencpn automatically.
Format of files is not stable yet. I have to make a round of field tests wheather it is usable and check calculation.

rgleason tests it on win as standalone build (i use linux and build within opencpn build system)

any another tests (on another systems/configurations) are welcome.

Small road map:
1. Polish UX and behavior of all form elements
2. Improve io format.
3. Connect Standard and secondary ports. (issue: A.T.T. lists numbers of ports, REEDS - no.. ).

Further ideas (which i might or might not do):
1. Add some kind of exchange data of stored ports with community to make it downloadable . In this wey data base of tide data from A.T.T. and REEDS will grow much faster and gets available for more people.
2. Add support for tide curve for standard port, so one can do such thing like "at which time one has enough water depth to pass a barrier" or similar.
3. ...

cheers,
registry
registry is offline   Reply With Quote
Old 01-10-2016, 04:36   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,842
Images: 2
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

@Pavel (Registry)
[Unfortunate circumstance here as "Pavel" is another developer and "Registry" is the main developer]

Can you add your tables in a file for this plugin and make an 'import' feature? It would be easier to test and less work ? also someone might find them useful and add to the file.

Quote:
Having REEDS for a given year, i do actually have most up-to-date calculation for most of ports and marinas, covered by the almanac. Problem is only the calculation.
rgleason is online now   Reply With Quote
Old 01-10-2016, 04:43   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,842
Images: 2
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

Here is what the plugin looks like without entering data. I don't have time to mess around entering Admiralty Data as that is not my sailing area.

The Table appears to work, but I have not tested it due to lack of data.
I have not tested the Export function. It would be nice to have an import function with some data to test with.

This new plugin is built and packaged for Windows at
OpenCPN Beta File Thingie rguser rgpass
Look under the 4.4 directory or the 4.2 directory.
admiralty_tide_tables_pi-0.1-ov4.2-win32

Whoops... now I read

Quote:
I've added IO Now one has to input data for standard or secondary ports only once, save it and it gets loaded by next start of opencpn automatically. Format of files is not stable yet. I have to make a round of field tests wheather it is usable and check calculation.
but I think I have the most recent git fetch.....????
Attached Thumbnails
Click image for larger version

Name:	AdmiraltyTidesTable.jpg
Views:	262
Size:	42.8 KB
ID:	132066  
rgleason is online now   Reply With Quote
Old 01-10-2016, 04:54   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,842
Images: 2
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

The git version I have is
* master f549b3b fixed forgotten array

@Pavel [registry] There does not seem to be any date. Or import function.
rgleason is online now   Reply With Quote
Old 13-05-2017, 00:01   #11
Registered User

Join Date: Feb 2012
Location: Austria
Posts: 320
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

Has anyone compiled a consolidation of various user data and how is it to be done?
- or is this plug-in maintained only for US?

I am particularly interested in Biscay South till Gibraltar and Malaga.
Any advise on where to get this data for use in ocpn is appreciated.
skipperearly is offline   Reply With Quote
Old 14-05-2017, 13:37   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,842
Images: 2
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

In brief, No. If you read the plugin provides a structure and forms to import data, but no data. It would be nice if someone took yhat task on and shared it with everyone. Read below, you can import the data.
rgleason is online now   Reply With Quote
Old 08-10-2017, 12:42   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,842
Images: 2
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

Added to Beta Plugins
https://opencpn.org/wiki/dokuwiki/do...gins:admiralty
rgleason is online now   Reply With Quote
Old 09-10-2017, 13:31   #14
Registered User

Join Date: Aug 2012
Posts: 37
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

I will get some work done for thius plugin when i will prepare my next "English Channel" trip, like next summer.

Before that to loaded with another things and not-tide relevant sailing routes like on Baltic or Mediterranean sea

As i've told - would be happy if someone takes over more intense development and mainaince of this plugin which i observe being useful for the navigation :-)
registry is offline   Reply With Quote
Old 10-10-2017, 02:23   #15
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: A.T.T. calculation plugin for REEDS almanac and Admiralty Tide Tables

Quote:
Originally Posted by rgleason View Post
Here is what the plugin looks like without entering data. I don't have time to mess around entering Admiralty Data as that is not my sailing area.

The Table appears to work, but I have not tested it due to lack of data.
I have not tested the Export function. It would be nice to have an import function with some data to test with.

This new plugin is built and packaged for Windows at
OpenCPN Beta File Thingie rguser rgpass
Look under the 4.4 directory or the 4.2 directory.
admiralty_tide_tables_pi-0.1-ov4.2-win32

Whoops... now I read



but I think I have the most recent git fetch.....????
Sort of works on Opencpn 4.8.0 . Calculated data looks OK, but save the data and Opencpn crashes either when you try to exit O or disable the plugin.

Pity, would be a very useful check for web tide data or when you don't have any web access. Bit too much work to input all the data every time. I've struggled to create something similar in PHP but gave up, PHP is a bit non intuitive for a non programmer like me

It would be really useful if someone were to pick up the ball with this one, if the save file was a human readable csv file or something then we could all add data. Standard port data looks to be fairly easy to get hold of on the web but I couldn't find any secondary port offsets online, looks like you might need to splash out on Reeds or the Cruising association almanacs for that

Lisbon >
http://tides.mobilegeographics.com/c...onth/3326.html

ps - What is "SC" ?

conachair is offline   Reply With Quote
Reply

Tags
cal, 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
Tide and Current tables tomdemott General Sailing Forum 1 03-07-2015 04:46
For Sale: Admiralty Charts and Almanac South Coast UK onthemove Classifieds Archive 0 13-10-2014 14:04
Need help to understand harbor info from Reeds almanac dokondr General Sailing Forum 4 25-05-2014 18:02
GPS and tide tables foggysail Navigation 11 05-08-2013 14:44
For Sale or Trade: Reeds 2011 Almanac - Atlantic Europe Chuteman Classifieds Archive 2 23-02-2012 16:33

Advertise Here


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


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.