Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 25-04-2013, 07:10   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

Some other thoughts:
Thanks, it's pretty clear you are far ahead of me on how to do this.
Some of your ideas below sound pretty good. There has been a progression simple --> complex
1. Convert monthly pilot atlas charts to grib so they can be used for planning.
2. Maybe add average week for 4 weeks in a month to make it better.
3. Maybe add average weeks, or days in the month to make it better. (compressed and summarized?)
4. To save space, maybe some way of capturing variability factors.rather than having just a simple averaged vector and it gets more complicated.
5. Maybe save in the compressed version some kind of compressed variability factor(s) for
for wind direction, magnitude, frequency
for month, weeks, days,
for various segments of the chart.
6. Thus it gets more complicated with may factors and variables:
Boat
Route/Destination
Climate
7. Maybe start slowly...and just make it work and improve it...

Also you mentioned there are about 10 different indices like El Nino
NOAA Earth System Research Laboratory
Macro patterns that affect weather, like gulf stream and jet stream location!
Yikes, more complexity.

I guess at some point you could sort the data for those conditions, extract & compress the averages and make climatology files that align with those conditions, but this is getting really extensive. --Wouldn't the wind files has those periods inherently? Is there a way to identify them somehow? The cycles.
__________________

__________________
rgleason is online now   Reply With Quote
Old 28-04-2013, 04:31   #17
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: Climatology

Here is the data for everything besides wind and currents (they are huge) remove the .ogg and extract. Anyone able to compile this plugin and get any results?
Attached Files
There was an error processing this video...
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 28-04-2013, 04:39   #18
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: Climatology

apparently trying to attach as a video (to allow for larger file size) doesn't work..

Here they are.. rename removing final extension.
Attached Files
There was an error processing this video...
There was an error processing this video...
There was an error processing this video...
There was an error processing this video...
__________________
boat_alexandra is offline   Reply With Quote
Old 28-04-2013, 04:42   #19
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: Climatology

this is my final try
Attached Files
There was an error processing this video...
There was an error processing this video...
There was an error processing this video...
There was an error processing this video...
__________________
boat_alexandra is offline   Reply With Quote
Old 28-04-2013, 05:42   #20
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: Climatology

Quote:
Originally Posted by boat_alexandra View Post
Here is the data for everything besides wind and currents (they are huge) remove the .ogg and extract. Anyone able to compile this plugin and get any results?

Yes, It compiled OK with Pavels cmake change.
I have tested with very limited data.
Today I pulled the latest git for climatology and O - master, and had a crash when starting the plugin.

Click image for larger version

Name:	climat-crash.png
Views:	120
Size:	55.2 KB
ID:	60045

This is how far the plugin came on the screen when crashing.

Click image for larger version

Name:	climat-crash1.png
Views:	121
Size:	14.0 KB
ID:	60046
__________________
cagney is offline   Reply With Quote
Old 28-04-2013, 06:05   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

Sean, I sent you an email, you might check it? -(It just downloaded.)
Found this in the OpenCPN forum from bdcat...
http://www.cruisersforum.com/forums/f134/opengl-for-opencpn-68227.html#post776073
15-09-2011, 18:56 bdcat Many, many thanks to Sean D'Epagnier, who created the OGL framework for OCPN, and got this branch started. Architectural errors in in the present work are mine, not his...

...A belated thank you as I believe it lead to open gl in windows.
__________________
rgleason is online now   Reply With Quote
Old 28-04-2013, 18:20   #22
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: Climatology

Quote:
Originally Posted by cagney View Post
Yes, It compiled OK with Pavels cmake change.
I have tested with very limited data.
Today I pulled the latest git for climatology and O - master, and had a crash when starting the plugin.
Given the backtrace it's impossible to determine for sure, but my guess is the currents data file is invalid, or it is something with 64bits.

Try deleting the currents file which is usually located in:
/usr/local/share/opencpn/plugins/climatology/data

Otherwise maybe single step starting at ClimatologyFactoryOverlay.cpp:59, and the cause should become obvious.
__________________
boat_alexandra is offline   Reply With Quote
Old 30-04-2013, 05:40   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

NOAA Blended Seawinds National Climatic Data Center (NCDC) Satellite Data Services

I believe these are related to the ones Boat Alexandra (Sean) is using for climatology.

The development of these products is in response to the demand for increasingly higher resolution global datasets. For example, scientists want to make more accurate forecasts of ocean and weather conditions. Links to articles on the high resolution feasibility study and the blending methodology are found in the Bibliography section below.
__________________
rgleason is online now   Reply With Quote
Old 30-04-2013, 06:58   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

Powerpoint about Seawind data collection and difference between scalar and vector data.
ftp://eclipse.ncdc.noaa.gov/pub/seaw..._NCDC_NODC.ppt

Seawinds documentation pdf
ftp://eclipse.ncdc.noaa.gov/pub/seaw...umentation.pdf

Explanation of Sampling pdf
ftp://eclipse.ncdc.noaa.gov/pub/seaw...ingGRL2006.pdf
__________________
rgleason is online now   Reply With Quote
Old 04-05-2013, 07:40   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

From Pavel's Post #3

Quote:
Try with the following patch cannibalized from grib_pi... I did it without looking at the code at all and it will sure not work on Windows until src/bzip2 is copied form the grib plugin...
With Pavel's suggestions and help, I've installed VirtualBox - Unbuntu 12.04 - Opencpn for linux. I can run OpenCPN now in Linux and various plugins, but when I compile and try to run the Climatology plugin it does not appear. The last opencpn.log has this line:
/usr/local/lib/opencpn/libclimatology_pi.so /usr/local/lib/opencpn/libclimatology_pi.so: undefined symbol: BZ2_bzReadClose
So I guess I need to copy src/bzip2 from grib plugin to climatology plugin. (Can't seem to find this in Ubunto Folders...more later)
Needs to be fixed, for others. Now wonder how to set up a request for git pull from Sean...to fix, but beyond my experience.

Later: Found usr/opencpn-git/plugins/climatology_pi/src/bzip2 and also found usr/opencpn-git/plugins/grib_pi/src/bzip2 directories. So that is no longer the problem. Maybe it is in the code that Pavel captured in post above?
__________________
rgleason is online now   Reply With Quote
Old 04-05-2013, 07:52   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

See this discussion between Pavel and Sean.
I wonder what I should do now.
Post 3 & 4

Don't know what to change.
Current CMakeLists.txt under Climatology:
Code:
IF(NOT UNIX)
    SET(SRC_BZIP_CLIM
            src/bzip2/bzlib.c 
            src/bzip2/blocksort.c 
            src/bzip2/compress.c 
            src/bzip2/crctable.c 
            src/bzip2/decompress.c 
            src/bzip2/huffman.c 
            src/bzip2/randtable.c
    )
    ADD_LIBRARY(LIB_BZIP_CLIM ${SRC_BZIP_CLIM})

    INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/src/zlib-1.2.3)
    INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/src/bzip2)
ENDIF(NOT UNIX)

IF(WIN32)
  SET(OPENCPN_IMPORT_LIB "../../${CMAKE_CFG_INTDIR}/${PARENT}")
  TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} LIB_BZIP_CLIM ${OPENCPN_IMPORT_LIB} )
  ADD_DEPENDENCIES(${PACKAGE_NAME} ${PARENT})
ENDIF(WIN32)

TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} ${wxWidgets_LIBRARIES} )

IF(APPLE)
      INSTALL(TARGETS ${PACKAGE_NAME} BUNDLE LIBRARY DESTINATION ${CMAKE_BINARY_DIR}/OpenCPN.app/Contents/PlugIns)
ENDIF(APPLE)

IF(UNIX AND NOT APPLE)
INSTALL(TARGETS ${PACKAGE_NAME} RUNTIME LIBRARY DESTINATION ${PREFIX_PLUGINS})
ENDIF(UNIX AND NOT APPLE)

IF(WIN32)
INSTALL(TARGETS ${PACKAGE_NAME} RUNTIME DESTINATION "plugins")
ENDIF(WIN32)
            
IF(WIN32)
  INSTALL(DIRECTORY data DESTINATION "plugins\\\\climatology")
ELSE(WIN32)
  INSTALL(DIRECTORY data DESTINATION ${PREFIX_PARENTDATA}/plugins/climatology)
ENDIF(WIN32)

INCLUDE("../PluginLocalization.cmake")
PLUGIN_LOCALIZATION()
__________________
rgleason is online now   Reply With Quote
Old 11-05-2013, 05:56   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

In Windows MSVC DEBUG Mode Climatology has a break.


Code:
KernelBase.dll!74aa3219()     
     [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]    
>    wxbase28ud_vc_custom.dll!wxTrap()  Line 678    C++
     wxbase28ud_vc_custom.dll!DoShowAssertDialog(const wxString & msg)  Line 753    C++
     wxbase28ud_vc_custom.dll!wxAppTraitsBase::ShowAssertDialog(const wxString & msgOriginal)  Line 557 + 0x9 bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxGUIAppTraitsBase::ShowAssertDialog(const wxString & msg)  Line 635    C++
     wxbase28ud_vc_custom.dll!ShowAssertDialog(const wchar_t * szFile, int nLine, const wchar_t * szFunc, const wchar_t * szCond, const wchar_t * szMsg, wxAppTraits * traits)  Line 836 + 0x11 bytes    C++
     wxbase28ud_vc_custom.dll!wxAppConsole::OnAssertFailure(const wchar_t * file, int line, const wchar_t * func, const wchar_t * cond, const wchar_t * msg)  Line 445 + 0x22 bytes    C++
     wxbase28ud_vc_custom.dll!wxOnAssert(const wchar_t * szFile, int nLine, const char * szFunc, const wchar_t * szCond, const wchar_t * szMsg)  Line 713    C++
     wxmsw28ud_adv_vc_custom.dll!wxDatePickerCtrl::SetValue(const wxDateTime & dt)  Line 247 + 0x43 bytes    C++
     climatology_pi.dll!ClimatologyConfigDialog::ClimatologyConfigDialog(ClimatologyDialog * parent)  Line 191 + 0x24 bytes    C++
     climatology_pi.dll!ClimatologyDialog::ClimatologyDialog(wxWindow * parent, climatology_pi * ppi)  Line 72 + 0x26 bytes    C++
     climatology_pi.dll!climatology_pi::OnToolbarToolCallback(int id)  Line 229 + 0x30 bytes    C++
     opencpn.exe!MyFrame::OnToolLeftClick(wxCommandEvent & event)  Line 3560 + 0x24 bytes    C++
     wxbase28ud_vc_custom.dll!wxAppConsole::HandleEvent(wxEvtHandler * handler, void (wxEvent &)* func, wxEvent & event)  Line 323    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEventIfMatches(const wxEventTableEntryBase & entry, wxEvtHandler * handler, wxEvent & event)  Line 1241    C++
     wxbase28ud_vc_custom.dll!wxEventHashTable::HandleEvent(wxEvent & event, wxEvtHandler * self)  Line 907 + 0x1c bytes    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event)  Line 1301 + 0x1c bytes    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event)  Line 1308 + 0x1c bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxWindowBase::TryParent(wxEvent & event)  Line 2661 + 0x1c bytes    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event)  Line 1315    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessPendingEvents()  Line 1197    C++
     wxbase28ud_vc_custom.dll!wxAppConsole::ProcessPendingEvents()  Line 296    C++
     wxmsw28ud_core_vc_custom.dll!wxIdleWakeUpModule::MsgHookProc(int nCode, unsigned int wParam, long lParam)  Line 6845    C++
     user32.dll!75eb6381()     
     user32.dll!75ea80a9()     
     user32.dll!75ea8ba1()     
     ntdll.dll!7735010a()     
     user32.dll!75ea78d7()     
     user32.dll!75ea790d()     
     wxmsw28ud_core_vc_custom.dll!GetMessage(tagMSG * lpMsg, HWND__ * hWnd, unsigned int wMsgFilterMin, unsigned int wMsgFilterMax)  Line 309    C++
     wxmsw28ud_core_vc_custom.dll!wxEventLoop::Dispatch()  Line 225 + 0xf bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxEventLoopManual::Run()  Line 115 + 0xd bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxAppBase::MainLoop()  Line 312 + 0x15 bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxAppBase::OnRun()  Line 368    C++
     wxbase28ud_vc_custom.dll!wxEntryReal(int & argc, wchar_t * * argv)  Line 448 + 0x1b bytes    C++
     wxbase28ud_vc_custom.dll!wxEntry(int & argc, wchar_t * * argv)  Line 209 + 0xd bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxEntry(HINSTANCE__ * hInstance, HINSTANCE__ * __formal, HINSTANCE__ * __formal, int nCmdShow)  Line 386 + 0xe bytes    C++
     opencpn.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow)  Line 747 + 0x1c bytes    C++
     opencpn.exe!__tmainCRTStartup()  Line 547 + 0x2c bytes    C
     opencpn.exe!WinMainCRTStartup()  Line 371    C
     kernel32.dll!766e33aa()     
     ntdll.dll!77379ef2()     
     ntdll.dll!77379ec5()
__________________
rgleason is online now   Reply With Quote
Old 13-05-2013, 08:46   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,318
Re: Climatology

Sean has been very patient with me, learning ubuntu and Vbox host window directory shares, and we've got the Makefile for creating the necessary database working now. The total starting database is about 130gb, but that gets processed down to much less as monthly files.

This is quite exciting as I can now see the results of Sean's work, and it is satisfying because after a big effort on Sean's part. I'd like to share one shot of his Climatology plugin, so you can get an idea. I hope Sean does not mind my doing this posting of a screen shot. We've almost got the first version of the data ready... The plugin is AWESOME, and hasn't been tested yet obviously. But Sean is going to want some willing testers when the time comes.
Attached Thumbnails
Click image for larger version

Name:	Climatology_pi-Wind-Cyclone.png
Views:	134
Size:	270.9 KB
ID:	60752  
__________________
rgleason is online now   Reply With Quote
Old 13-05-2013, 08:55   #29
Registered User

Join Date: Apr 2012
Location: Port Vila, Vanuatu
Boat: Van der Stadt Samoa 48
Posts: 127
I Will be happy to test this plugin as som as it is ready.

Lars
__________________
Taarnskov is offline   Reply With Quote
Old 13-05-2013, 09:29   #30
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: Climatology

well as you can see the isobars are doubled up. Not sure why it is so bad here since it is the same algorithm grib uses. Some little glitches here and there, but basically I am already using this for planning cruising routes.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Reply

Tags
paracelle

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 09:11.


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.