Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-04-2011, 08:04   #1
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 2,619
World Magnetic Model Plugin

Navigators...
while playing with stuff I hacked together a very small plugin implementing the World Magnetic Model published by NOAA into OpenCPN.
The plugin requires OpenCPN 2.4.324 or later to work correctly.
In the preferences you can tailor the amount of displayed information to your liking - from one-line declination display at boat's location to all the components that please the freaky magnetician.
Useful? And yes, I know I should have done it as an instrument in the dashboard plugin

Linux version:
https://github.com/downloads/nohal/OpenCPN/libwmm_pi.so
place the downloaded file into your plugin folder - most likely /usr/local/share/opencpn/plugins

Windows version:
https://github.com/downloads/nohal/OpenCPN/wmm_pi.dll
place the downloaded file into your plugin folder

Source lives at https://github.com/nohal/OpenCPN/tre...plugins/wmm_pi

Enjoy

Pavel
Attached Thumbnails
Click image for larger version

Name:	wmm_freak.png
Views:	435
Size:	98.3 KB
ID:	25790  
Attached Images
 
__________________

__________________
nohal is offline   Reply With Quote
Old 03-04-2011, 08:37   #2
NAV
Registered User

Join Date: Sep 2010
Posts: 224
Re: World Magnetic Model plugin

What a coincidence. I just finished changing the text about magnetic variation in the manual a bit (seconds ago).

I'll try you're plugin right away.

Edit:
It's showing the variation and the annual change at the cursor. In the boat field, I don't see anything, probably because no GPS is connected.

The variation map (as shown in your mail) seems not to be part of the plugin. I guess it should be downloaded and georeferenced separately before it shows in openCPN.

Switching to extended mode crashes openCPN on my system (first time I experience this with any plugin). Seems to be at any first preference change, not always.

Advice: for navigational purposes (and that's what openCPN is about) the term "variation" should be used in case of the term "declination".
__________________

__________________
NAV is offline   Reply With Quote
Old 03-04-2011, 09:33   #3
NAV
Registered User

Join Date: Sep 2010
Posts: 224
Re: World Magnetic Model plugin

Quote:
Originally Posted by NAV View Post
It's showing the variation and the annual change at the cursor.
I was wrong about the annual change. It only shows the variation, both in decimal degrees and in degrees and minutes. However, the annual change in variation is also availbale in the model, as stated on the NOAA site.

It is necessary to show the latest date that the data in the model is still valid (or the year for which the data is valid AND the annual change)! Also the units used for presentation of the data should be shown (nT -nanoTesla, deg - degrees, min - minutes per year).

Anyway, a very handy tool.


Crashing seems to happen whenever a presentation change is made without switching WMM off first, using the icon.
__________________
NAV is offline   Reply With Quote
Old 03-04-2011, 09:59   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 2,619
Re: World Magnetic Model plugin

NAV,
the chart is not part of the plugin, it is georeferenced and available for download from opencpn.org for quite some time.
Regarding the terminology I stayed with all terms magnetic to keep it consistent. I'm personally not that allergic to declination as my book said it's a synonym to variation when I last read it
Crash reproduced - can happen only when you change prefs before displaying the plugin window for the first time - fixed. Will release new version when time comes.

Thanks

Pavel
__________________
nohal is offline   Reply With Quote
Old 03-04-2011, 10:37   #5
Registered User
 
cagney's Avatar

Join Date: Dec 2005
Posts: 2,799
Re: World Magnetic Model plugin

Nohal

Nice plugin!
I am allergic to "landlubber" terminology.
Let a future astro-navigation plugin use "declination", and please use "variation" which is the traditional nautical term.

Yeah, I had the crash as well.

I would like to compile he plugin for my 64 bit Ubuntu, but get a bit confused as " git clone git://github.com/nohal/OpenCPN.git " don't include this plugin. Is there an other git command I should use?

Thomas
__________________
cagney is offline   Reply With Quote
Old 03-04-2011, 11:01   #6
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 2,619
Re: World Magnetic Model plugin

Thomas,
you guys convinced me, going to burn declination
The plugin lives in a branch named wmm
You can even "mix" it with the sourceforge tree - just go to your source dir and do
Code:
git remote add nohal  git://github.com/nohal/OpenCPN.git
git fetch nohal
git checkout nohal/wmm
Code:
git branch -a
gives you the list of all the branches available. Without the -a switch just local branches are displayed

Pavel
__________________
nohal is offline   Reply With Quote
Old 03-04-2011, 11:43   #7
Registered User
 
manimaul's Avatar

Join Date: Feb 2008
Location: Seattle, WA
Posts: 416
Re: World Magnetic Model plugin

Pavel,

Awesome!
__________________
Marine Navigation for Android:
http://mxmariner.com
manimaul is offline   Reply With Quote
Old 03-04-2011, 13:06   #8
Registered User
 
cagney's Avatar

Join Date: Dec 2005
Posts: 2,799
Re: World Magnetic Model plugin

Thanks Pavel.
No 64 bit surprises. Compiled OK.
Thomas
__________________
cagney is offline   Reply With Quote
Old 05-04-2011, 00:16   #9
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 1,218
World Magnetic Model : Crash

hello,

First use ----> crash when I change the "Prferences". Exactly when I click on "Ok" for validate my new choice.

Best regards

Gilletarom
Attached Thumbnails
Click image for larger version

Name:	2011-04-05_Crash.jpg
Views:	162
Size:	175.7 KB
ID:	25863   Click image for larger version

Name:	2011-04-05_Crash_II.jpg
Views:	156
Size:	187.1 KB
ID:	25865  

Attached Files
File Type: doc opencpn_2.log.doc (4.9 KB, 67 views)
__________________
Gilletarom is offline   Reply With Quote
Old 05-04-2011, 00:20   #10
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 2,619
Re: World Magnetic Model plugin

Gilletarom,
thanks, already fixed, will be in the next release.

Pavel
__________________
nohal is offline   Reply With Quote
Old 05-04-2011, 00:28   #11
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 1,218
Re: World Magnetic Model plugin

Hello,

Seems work fine when I connect the GPS.

Problem :

The window of this plugin, is above all the windows.

See attach file

Gilletarom.
Attached Thumbnails
Click image for larger version

Name:	2011-04-05_Window_other_all_other_windows.jpg
Views:	145
Size:	87.4 KB
ID:	25866  
__________________
Gilletarom is offline   Reply With Quote
Old 05-04-2011, 02:27   #12
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 2,619
Re: World Magnetic Model plugin

Version 0.2 is out, considered stable
Changes:
  • Fixed crash in settings dialog
  • Changed window behavior from being globally on top to be just on top of the application window
  • Night mode support
  • Units shown (if you don't like it, make your custom .mo file)
  • Model expiration note and instructions added in plugin description
  • Plugin now clearly shows it's hate to the magnetician community by strictly using the nautical term Magnetic Variation instead of Geomagnetic Declination The magneticians can also make their own .mo to revert it as a revenge.
Download for Windows and Linux from https://github.com/nohal/OpenCPN/downloads
If anybody makes a Mac version, send it to me to make it available as well - there are still no apples on my table.

If someone wants to translate the plugin, the POT can be downloaded from https://github.com/nohal/OpenCPN/blo...i.pot?raw=true
Just send me back the .po and I will make the localization available for download.

Enjoy

Pavel
__________________
nohal is offline   Reply With Quote
Old 05-04-2011, 03:04   #13
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 1,218
Re: World Magnetic Model plugin

Hello,

I'll do the translation in French.

Gilletarom
__________________
Gilletarom is offline   Reply With Quote
Old 05-04-2011, 03:18   #14
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 1,218
Re: World Magnetic Model plugin Logfile or log.ini ?

Hello Pavel,

In the .pot I read this item :

World Magnetic Model PlugIn for OpenCPN\n
Implements the NOAA World Magnetic Model\n
More information: http://www.ngdc.noaa.gov/geomag/WMM/\n
The bundled WMM2010 model expires on December 31, 2014.\n
After then, if new version of the plugin will not be released\n
in time, get a new WMM.COF from NOAA and place it to the\n
location you can find in the OpenCPN logfile.

When you say logfile, is it the .log or the .ini ?

Gilletarom
__________________
Gilletarom is offline   Reply With Quote
Old 05-04-2011, 03:41   #15
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 1,218
Re: World Magnetic Model plugin Features ..

Hello,

No, not stable because the window is above all other windows and this is unpleasant

What are the units for F, H, X, Y, Z, Incl, Decl ? Is it possible to write these units in each line ?

It would be nice if there was a button on the "Boat" of the extended display. This button would go to shows simplified and vice-versa.

Gilletarom.
__________________

__________________
Gilletarom is offline   Reply With Quote
Reply

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
Plugin: DashBoard SethDart OpenCPN 263 02-10-2014 07:27
BSB 4 PlugIn bdbcat OpenCPN 90 12-07-2014 13:33
Logbook Plug-in SethDart OpenCPN 98 10-01-2013 11:47
Chartwork Plugin mario f OpenCPN 10 29-03-2012 19:21
Suitable Make and Model for Around the World Voyage DirtyDave Monohull Sailboats 43 21-02-2011 13:33


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

RV & Travel Trailer Communities

Our RV & Travel Trailer sites encompasses virtually all types of Recreational Vehicles, from brand-specific to general RV communities.

» More about our RV 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-2012 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:01.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.