Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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-03-2018, 05:50   #121
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Mike, I think your cross compiling PR is fine. The bug found applies to both linux and windows I believe, and is a separate issue that may have existed before!

Looked at this, you made a PR in Jan 2017 that deals with formatting. I think you were correcting the problem?
https://github.com/SaltyPaws/calcula...c770f79ae798c7
rgleason is offline   Reply With Quote
Old 08-03-2018, 06:44   #122
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Under Preferences
Precise - default
Precise (Thousands separator) - Opencpn Fails
Succinct
Succinct (Thousands separator) - Openpn Fails
Scientific
Humanized
The two that fail could be disabled or they could be fixed.
Probably has something to do with line 710


Also the function Humidex gets an error
Error: Unexpected parenthesis "(" at position 39
Which is probably unrelated.

https://github.com/SaltyPaws/calculator_pi/issues/21

I believe this is a separate problem from Cross Compiling.
rgleason is offline   Reply With Quote
Old 08-03-2018, 09:34   #123
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Mike, I tried your version calculator_pi-1.7 (which shows as 1.6 in preferences) and that version does not have the precise thousands or succinct thousands error.

Perhaps line 710 as you had it is better, rather than SaltyPaws version.
rgleason is offline   Reply With Quote
Old 14-03-2019, 10:55   #124
Registered User

Join Date: May 2012
Posts: 1,223
Re: Calculator_pi New Finished Plugin for OpenCPN

My fork of Salty_Paws Calculator_pi has been updated for OpenCPN 5 beta.

https://github.com/Rasbats/calculato...eases/tag/v2.0

Compiles on both Windows and Linux. Many warnings on Linux but both versions seem to work correctly. Please test.

For ease of maintenance I have removed the Fx button from the toolbar. Fx is accessed via the Calculator dialog.

Mike
Rasbats is offline   Reply With Quote
Old 14-03-2019, 13:29   #125
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Mike I think that is a good idea>
rgleason is offline   Reply With Quote
Old 03-04-2019, 04:06   #126
Registered User

Join Date: May 2012
Posts: 1,223
Re: Calculator_pi New Finished Plugin for OpenCPN

Translators ...

A new POT file for Calculator_pi is now in Crowdin. Would appreciate help with translations where possible. There are a lot of strings in the file that will not need translation. Please ignore these. (I wanted to avoid making too many replacements!)

Mike
Rasbats is offline   Reply With Quote
Old 03-04-2019, 11:31   #127
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: Calculator_pi New Finished Plugin for OpenCPN

Mike,


It seems to me that it would be convenient to put a comment, in the comment section of the page of the crowdin, allowing the translators to recognize the items that should not be modified.




Gilletarom.
Gilletarom is offline   Reply With Quote
Old 03-04-2019, 14:05   #128
Registered User

Join Date: May 2012
Posts: 1,223
Re: Calculator_pi New Finished Plugin for OpenCPN

G ...

Noted, but your translations are fine. You have not changed any strings that are likely to cause a problem.

Mike
Rasbats is offline   Reply With Quote
Old 04-04-2019, 08:59   #129
Registered User

Join Date: May 2012
Posts: 1,223
Re: Calculator_pi New Finished Plugin for OpenCPN

Just tested with some translations and the functions are not working correctly.

Suggest translators wait for an updated POT file where only "safe" strings are available for translation.

Mike
Rasbats is offline   Reply With Quote
Old 03-05-2019, 13:59   #130
Registered User

Join Date: May 2012
Posts: 1,223
Re: Calculator_pi New Finished Plugin for OpenCPN

With massive help from Gilletarom a number of corrections have been made to calculator_pi and it should be easier to use.

The POT file has been updated on Crowdin. Translations are complete for French but would be welcomed for other languages.

The updated Windows and DEB installers for v2.2 are here:

https://github.com/Rasbats/calculato...ov50-win32.exe

https://github.com/Rasbats/calculato....2-1_amd64.deb

Thanks,
Mike
Rasbats is offline   Reply With Quote
Old 04-05-2019, 06:29   #131
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Many Thanks. G and Rasbats.
I was going through the functions and found this problem




Fetch Modified Wilson

Using Knots and Nautical Miles



Error: Unexpected parenthesis "(" at position 16




Also it would be very nice if we did not have to resize the Extra Function Window every time we calculated!
Attached Thumbnails
Click image for larger version

Name:	Screenshot (41).jpg
Views:	58
Size:	425.2 KB
ID:	191368  
rgleason is offline   Reply With Quote
Old 04-05-2019, 06:56   #132
Registered User

Join Date: May 2012
Posts: 1,223
Re: Calculator_pi New Finished Plugin for OpenCPN

Rick ...

Only an error when result for waveheight is in feet. What units are you using for fetch and the result? U10 must be in m/s.

Mike
Rasbats is offline   Reply With Quote
Old 04-05-2019, 07:23   #133
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: Calculator_pi New Finished Plugin for OpenCPN

hello Rasbats,

I was right to fear that there will still be one or more bugs. And that it may remain one or more bugs despite the efforts. I counted that you had released more than 18 beta versions in a few weeks.


Bah ... It is not serious; ... A hundred times on the job we will hand over the work!

That said, for those who speak French, I created a page for "Calculator" in the website opencpn.fr:
La calculette
Gilletarom is offline   Reply With Quote
Old 04-05-2019, 11:36   #134
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by Rasbats View Post
Rick ...

Only an error when result for waveheight is in feet. What units are you using for fetch and the result? U10 must be in m/s.

Mike
Yes now I see that there is a note that U10 windspeed must be in m/s
Also I think the formula area is not working correctly.

Fetch Modified Wilson
U10 Wind speed must be m/s
Fetch can be anything in the dropdown.
Waveheight must be "Meter"
or there is an Error
Error: Function arguments used without a function position:295)
OR
Error: Unexpected parenthesis "(" at position 16

I believe this used to complete, but somehow the values seemed to be off, but perhaps that was just me.
Mike, Did you try to get this working? IE: would it be worthwhile for me to look at it?

Yes, this is a minor bug that has been called out.
rgleason is offline   Reply With Quote
Old 04-05-2019, 12:00   #135
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

For the future:
Here is the Woods Hole calculator which uses all the different units for U10

https://woodshole.er.usgs.gov/projec...h_limited.html


This Javascript app implements Eqns. 3-39 and 3-40 from the Shore Protection Manual. Input is the wind speed u10 measured 10 m above the sea surface, the fetch f, and the water depth h. The calculations adjust wind speed to adjusted wind speed Ua according to Eqn. 3-28a before being used. Calculated results are significant wave height Hs and wave period T.







https://journals.ametsoc.org/doi/pdf.../2007JPO3712.1

https://people.eng.unimelb.edu.au/im...6/SeckHong.pdf
https://swellbeat.com
http://www.cruisersforum.com/forums/...tch-25554.html
http://www.seafriends.org.nz/oceano/waves.htm
rgleason is offline   Reply With Quote
Reply

Tags
opencpn


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


Advertise Here


All times are GMT -7. The time now is 02:36.


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.