Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 19-12-2013, 12:10   #106
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

Earth's poles are shifting because of climate change

"Climate change is causing the North Pole's location to drift, owing to subtle changes in Earth's rotation that result from the melting of glaciers and ice sheets. The finding suggests that monitoring the position of the pole could become a new tool for tracking global warming.
Computer simulations had suggested that the melting of ice sheets and the consequent rise in sea level could affect the distribution of mass on the Earth's surface. This would in turn cause the Earth's axis to shift, an effect that has been confirmed by measurements of the positions of the poles."


Earth's poles are shifting because of climate change - environment - 13 December 2013 - New Scientist
__________________

__________________
rgleason is offline   Reply With Quote
Old 03-02-2014, 06:52   #107
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

Posts (string of posts) about Use and shutting off.
OpenCPN Beta Version 3.3.1328 Released
__________________

__________________
rgleason is offline   Reply With Quote
Old 01-10-2014, 09:19   #108
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: World Magnetic Model Plugin

A observation about wmm.cof and windows package.
There is a wmm.cof in the source package so it's present in my opencpn.git\plugins\wmm_pi directory and also in the build\plugins\wmm_pi directory after built. I use to make updates using the package build and run the .exe file created. Any updates of wmm_pi.dll is included in the built package but the wmm.cof is not copied and thus not present in c:\program\opencpn\plugins. Should the package logic be updated or did I misunderstand all of it?

Now I copied the file manually:
Before copying the log says:
Code:
16:50:49:   C:\Program\OpenCPN\plugins\wmm_pi.dll
              API Version detected: 108
              PlugIn Version detected: 7
16:50:49: Warning: WMM model data file C:\Program\OpenCPN\plugins/WMM.COF can't be loaded, using the bundled data.
After copying the warning is gone

Håkan
__________________
Hakan is offline   Reply With Quote
Old 01-10-2014, 09:38   #109
Registered User

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

Hakan...
Yep, know about it. I'm kind of waiting for the new WMM release from NOAA for the 2015 epoch to finally fix it properly.

Pavel
__________________
nohal is offline   Reply With Quote
Old 01-10-2014, 10:16   #110
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: World Magnetic Model Plugin

Pavel...
Very good, thanks
__________________
Hakan is offline   Reply With Quote
Old 01-10-2014, 11:10   #111
Registered User

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

BTW, the release date of the new model has just been announced on World Magnetic Model - Home Page - December 15th be it. So the new WMM plug-in version will come around Christmas... Make sure to file the bugs and feature requests in the tracker by then

Pavel
__________________
nohal is offline   Reply With Quote
Old 01-10-2014, 12:37   #112
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

Please note that for NSIS Standalone Plugin Compile for Windows that
the file is copied and included in the WMM-install.EXE

C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\data has wmm.cop

AND

C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\build\_CPack_Packages\win32\NSIS\wmm_pi-0.8-win32\plugins\wmm_pi\data has wmm.cof

So it does not appear to be a problem for Windows compile
__________________
rgleason is offline   Reply With Quote
Old 01-10-2014, 14:49   #113
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: World Magnetic Model Plugin

Quote:
Originally Posted by rgleason View Post
Please note that for NSIS Standalone Plugin Compile for Windows that
the file is copied and included in the WMM-install.EXE

C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\data has wmm.cop

AND

C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\build\_CPack_Packages\win32\NSIS\wmm_pi-0.8-win32\plugins\wmm_pi\data has wmm.cof

So it does not appear to be a problem for Windows compile
I'm sure these routines are working fine but I'm a bit lazy so all the plugins I use are present in my opencpn repository. And it's very handy to use the package from within Visual C++ 2010 to update all files in a single step. Especially since my own adjustments are present in a branch I use to merge from a updated master. I use a couple of dated instruments, like Simrad IS15 and an old Garmin navigator, so some of my plugins needs to be arranged for that and I don't want to mix them with "official" versions.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 02-10-2014, 04:10   #114
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

Yes, That is a great way to set it up for your own config if you compile.
I have found the standalone plugin compilation with Nsis packaging to be quite quick and easy for preparing packaged plugins for windows users. There is less copying and mucking around. I like it enough so I've tried to setup some of the other plugins that way.
But the way, I recall some Hakan batch files that moved us toward standalone compile of plugins....

Maybe wmm_pi should become a fixed part of O like Dashboard and Grib? ...but then O would be a little bigger.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is offline   Reply With Quote
Old 02-10-2014, 04:15   #115
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

Only development downside is when you need to run in debug mode to get more detail, then there's a little more copying to do.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is offline   Reply With Quote
Old 02-10-2014, 06:10   #116
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: World Magnetic Model Plugin

Quote:
Originally Posted by rgleason View Post
Yes,...........Maybe wmm_pi should become a fixed part of O like Dashboard and Grib? ...but then O would be a little bigger. ...
Not less since my navigator don't serve wmm data any more I strongly agree to make WMM a part of the OCPN base source.


I'm aware of the debug issues and use to solve the copying by using a batch file.

Håkan
__________________
Hakan is offline   Reply With Quote
Old 16-10-2014, 11:46   #117
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

New wmm_pi Git Pull, then cmake .. cmake --build . got the below errors.. then when did cmake --build . --config release the errors went away.

Code:
Build succeeded.

"C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\build\ALL_BUILD.vcxproj" (def
ault target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\build\wmm_pi.vcxproj" (defaul
t target) (3) ->
(ClCompile target) ->
  c:\data-dart\up-soft\navigation\o-plugin\wmm_pi-k\src\WMM_SubLibrary.c(3184):
warning C4552: '+' : operator has no effect; expected operator with side-effect
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_pi-k\build\wmm_pi.vcxproj]
  ..\src\wmm_pi.cpp(316): warning C4800: 'wxChar' : forcing value to bool 'true'
 or 'false' (performance warning) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\wmm_
pi-k\build\wmm_pi.vcxproj]

    2 Warning(s)
    0 Error(s)

Time Elapsed 00:00:05.26

Cpack ed it into and installation file, and uploaded to
Opencpn Beta File Thing rguse rgpass
__________________
rgleason is offline   Reply With Quote
Old 16-10-2014, 12:11   #118
Registered User

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

Rick...
No need to produce Windows packages when the changes are just added packaging for Mac OS X But thanks

Pavel
__________________
nohal is offline   Reply With Quote
Old 16-10-2014, 12:29   #119
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,319
Re: World Magnetic Model Plugin

Pavel, thanks, I should have read the comments! Pretty funny.
__________________
rgleason is offline   Reply With Quote
Old 14-11-2014, 05:00   #120
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: World Magnetic Model Plugin

Hi
I made a new clone of WMM and there are some new package? stuff. cmake reported:
Code:
-- *** Staging to build wmm_pi ***
-- Found OpenGL...
--     Lib: glu32opengl32glu32opengl32
--     Include:
-- Install Prefix: C:/Program/OpenCPN
CMake Warning (dev) at plugins/wmm_pi/CMakeLists.txt:54 (INCLUDE):
  A logical block opening on the line

    C:/Builds/OpenCPN/OpenCPN/plugins/wmm_pi/cmake/PluginInstall.cmake:78 (IF)
  closes on the line
    C:/Builds/OpenCPN/OpenCPN/plugins/wmm_pi/cmake/PluginInstall.cmake:80 (ENDIF)

  with mis-matching arguments.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Writing spec file...
I suppose there's a bug in PluginInstall.cmake:80
Code:
IF(EXISTS ${PROJECT_SOURCE_DIR}/data)
    INSTALL(DIRECTORY data DESTINATION "${INSTALL_DIRECTORY}")
  ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/data)
I also suppose row 80 should read: ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/data) ??


Thanks/ Håkan
__________________

__________________
Hakan 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 470 24-08-2016 21:34
BSB 4 PlugIn bdbcat OpenCPN 93 20-02-2016 04:41
Logbook Plug-in SethDart OpenCPN 98 10-01-2013 12:47
Chartwork Plugin mario f OpenCPN 10 29-03-2012 20:21
Suitable Make and Model for Around the World Voyage DirtyDave Monohull Sailboats 43 21-02-2011 14:33



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.