Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 24-03-2013, 02:06   #16
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: New grib presentation

Quote:
Originally Posted by Hakan View Post
JP..
The attached windows .pi file seems to be the "old" official grib file ???
See dump.
Håkan
Oups.... My fault I mismatched two environments !
sorry..
here the right file
Jean Pierre
Attached Files
File Type: doc grib_pi.dll.doc (324.0 KB, 85 views)
__________________

__________________
Ptizef is offline   Reply With Quote
Old 24-03-2013, 07:44   #17
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: New grib presentation

Quote:
Originally Posted by Ptizef View Post
Oups.... My fault I mismatched two environments !
sorry..
here the right file
Jean Pierre
JP..
Thanks, yes now it's the right one. As you said no change. Works good.
Håkan
__________________

__________________
Hakan is online now   Reply With Quote
Old 24-03-2013, 09:55   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

I tried this git command
Code:
git remote add ptizef git://github.com/Ptizef/OpenCPN.git
How do I work in the branch: NEW_GRIB?

Thanks
(Whoops - wrong spelling, to start with! -Changed from Ptizel)

Had to remote rm pitzef then redo the git remote command.
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 10:08   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

What branch should I use?
NEW_GRIB -> ptizef/NEW_GRIB
grib_enhancements -> pitizef/grib_enhancements
Thanks
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 10:16   #20
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: New grib presentation

Rick...
ptizef/NEW_GRIB = Ptizef's changes
ptizef/grib_enhancements = Ptizef's copy of Sean's changes (not necessarily in sync with Sean's latest code)

I know that it may be a bit confusing, but that's how distributed version control systems work - everybody can have his own copy of anything and treat it however he wants...

Pavel
__________________
nohal is offline   Reply With Quote
Old 24-03-2013, 10:21   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

Thanks Pavel, this gets pretty deep, but I think I get it.
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 11:51   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

I've run New_Grib through many of my locally stored grib files. Including Current Gribs. I like it.
I think the interface and user control is good. We can always have wind speed and direction and pressure. Then we can select one other type of data to overlay.

I like the name of the file in the lower left corner, excellent.

I have attached some files, the names of the files give some indication of what they are.

It bombed on a couple of files (out of many files). I don't know if it is a bad file or not. I think it works in qtvlm, but I will check.

Also one of the files that did not write but did not bomb either was a zero byte file, possibly there could be a message?

There are some screen shots below of several world scale Current gribs, that show data in the window, but do not show arrows or graphics. Can't zoom out far enough, even using CM93 Charts. These are pretty big files. I can attach or put in dropbox and provide a link if you would like. I believe they work in qtVlm.

I like this plugin, including:

Email choices, excellent (can we add more? also can we have option of download (later feature maybe), with ability browse and add URL locations & description)

Showing cursor data in popup screen, very good. (Can this screen expand a little so that we can get Current in there? -- I know I can uncheck something too, like Rainfall, or Wind gust.)

The configuration popup window is good. It would be nice if you could keep this window up and select and display the various data overlays without having the window close (saves time looking at the data). I assume this operation would be done while video is not playing, when on a specific grib date and UTC time.

I would very much like to be able in the future to display 2 gribs one for Current (which is usually separate, and possibly another for sea temp) and one for the other data.

Also I think a transparency slider for the second current grib and for the selected data overlay would be good.

Then of course the Video type Play feature in Grib_Enhancements would be very useful, with speed fast or slow slider.

Hope this does not sound demanding. It is incredible what everyone has done here! It really seems like this improves very fast, but I know it takes time programming!

Thank you Sean, Jean Pierre, Nohal and all.
Attached Thumbnails
Click image for larger version

Name:	New_Grib-RTOFS-SeaTemp.jpg
Views:	119
Size:	398.3 KB
ID:	57769   Click image for larger version

Name:	New_Grib-COAMPS-Wind-speed-dir-Pressure.jpg
Views:	123
Size:	411.5 KB
ID:	57770  

Click image for larger version

Name:	New_Grib-GFS-Noas-everythiing-except-Current.jpg
Views:	128
Size:	425.4 KB
ID:	57771   Click image for larger version

Name:	New_Grib-Current_gb-Only-Current.jpg
Views:	136
Size:	398.7 KB
ID:	57772  

Click image for larger version

Name:	New_Grib-Mercator_Currents_Lower_Atlantic.jpg
Views:	122
Size:	403.7 KB
ID:	57773   Click image for larger version

Name:	New_Grib-FVCOM_Tidal_Stream_High_Resolution-Currents.jpg
Views:	115
Size:	426.9 KB
ID:	57774  

Click image for larger version

Name:	New_Grib-FVCOM_Tidal_Stream_High_Resolution-Newport_Currents.jpg
Views:	118
Size:	429.9 KB
ID:	57775   Click image for larger version

Name:	New_Grib-Cannot-Read-ZeroByte-File.jpg
Views:	109
Size:	409.6 KB
ID:	57776  

Click image for larger version

Name:	New_Grib-GLO_rfvl_all.grb.bz2-cannot-Zoom-out-enough.jpg
Views:	106
Size:	326.4 KB
ID:	57777   Click image for larger version

Name:	New_Grib-GLO_rfvl_all.grb-With-CM93-cannot-Zoom-out-enough.jpg
Views:	117
Size:	281.0 KB
ID:	57778  

Click image for larger version

Name:	New_Grib-RTOFS-atl20130324161903259-SeaSurf_Temp.jpg
Views:	116
Size:	402.1 KB
ID:	57779  
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 13:51   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

I tried compiling it. git fetch ptizef/NEW_GRIB, then copied the wxWidgets files as directed, then cmake .. and cmake --build . in Dos prompt. Then found grib_pi was new one minute ago. Copied to opencpn-git/build subdirectory. Then started MSVC and did a build, then Debug. I could operate Opencpn fine. Went into settings/plugins/enabled Grib 1.4 went to preferences saw Use High definition graphics, time zone setting and speed units settings. Left high definition off. Applied.

(I hope the main settings panel will have all these choices some day, for time, speed, temp, barometer etc.)

Then clicked on the plugin. It bombed instantly. I then tried recompiling it. Next time it bombed again with src\msw\utilisgui.cpp[178] assert "gs_wxBusyCursoCount > 0" failed in wxEndBusyCursor() etc.

I/ve attached the files.
Attached Thumbnails
Click image for larger version

Name:	New_Grib-Break-src-msw-Utilgui-cpp[198].jpg
Views:	117
Size:	398.3 KB
ID:	57784  
Attached Files
File Type: doc New_Grib-Break-src-msw-Utilgui-cpp[198]-CallStack.doc (3.8 KB, 32 views)
File Type: doc New_Grib-Break-src-msw-Utilgui-cpp[198]-CallStack-2nd-Time.doc (3.8 KB, 34 views)
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 16:34   #24
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: New grib presentation

rgleason ...

Thanks for your comments
1) I canceled the ptizef/grib_enhancements branch to ovoid confusion - sorry

2) Do you use the last version ? I very recently pushed some code and strings corrections and among them I remove unbalanced "...BusyCursor"
I never had problem with its but ?

3) Could you send me one bombing file and one showing numeric data but no graphic on the screen (latest pictures)
I'll see if we can have a message for zero bit files

For the other points , I'll have a look .

Thanks again
Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 24-03-2013, 19:40   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

Grib and Grib Current files sent were tested in a downloaded compiled 3.2.0 Ocpn, with the most recent grib_pi.dll from this thread.
Some of the current gribs show data but no graphics, some don't show anything but a message to zoom out to show data, some don't show anything except the file name at the left.

I had some ideas about sea temp and current gribs, is it possible to select them to merge with another set off grib data? Perhaps such that the region of the sea-temp + current data that overlaps the parent file is pulled in? Then the entire grib file could be shown in Opcn? I am sure there are other variations of this.

Also, perhaps the plugin could be more aware of the data available in the grib, such that in the Data Display, the radio buttons would be greyed out if no such data exists. It would save some time checking each button!! We would know what data was available.

Also if a new Grib is selected, it would be nice if this new data awareness would kick in and turn on the first ungreyed radio button layer, so that there would be an overlay on wind dir + speed + pressure.

One other thing that would be helpful in using the gribs, is a checkbox or toggle to give us a box around the outside edges of the grib, so we know where it is located if it is not showing. If that could be in some spot on the first window, we could get to it easily.

I'll try compiling next.
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 20:31   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,369
Re: New grib presentation

It compiled. The new dll complained 3 times (break) about [178]. I tried hitting break and recorded image and Call Stack, and then tried continue and it froze and I had to start Debug atain. It did this twice with same thing happening each time. Then the third time I hit Cancel and it went through to render the grib. After that I was able to just load gribs and operate freely.

There is definitely something going on at the beginning.

I also noticed that the Oscar....Cur-SeaTemp... did not load.
Also FVCOM_tidal_stream_high_resolution...

and FVCOM_tidal_stream_ Gulf of Maine has about 3 frames at the end with no data, so you think it is not working. Hit the forward button and the current appears.
Is there any way to simply ignore or delete those frames with no data?

By the way more recent files GFS20130324161803248.grb
and GFS201303201300192 have many types of data types, and came by your email selection.

Hopefully the opening bug can be swatted.. src/msw/utilsgui.cpp[178]
may have had the wrong line last time.
Attached Thumbnails
Click image for larger version

Name:	New_Grib-2-Break-src-msw-Utilgui-cpp[178].jpg
Views:	118
Size:	391.0 KB
ID:	57811   Click image for larger version

Name:	New_Grib-2-Break-src-msw-Utilgui-cpp[178]-Twice-Again-Hit-Cancel.jpg
Views:	118
Size:	406.5 KB
ID:	57813  

Click image for larger version

Name:	New_Grib-2-SeemsToBeWorkingOnMostGrib.jpg
Views:	115
Size:	423.1 KB
ID:	57814  
Attached Files
File Type: doc New_Grib-2-Break-src-msw-Utilgui-cpp[178].doc (3.8 KB, 26 views)
__________________
rgleason is offline   Reply With Quote
Old 24-03-2013, 21:43   #27
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 270
Re: New grib presentation

Cool! I like it!
what else would like to see
1. setting local time instead of UTC
2. settings for the wind speed (ms, kmh, kts) and pressure mBar, mmHg
3. color map for wind data
4. downloading grib files optionally via email and once in OpenCPN.
5. Subscription options to automatically download files over a given time.

I could not load the grib file via plugin. eMail error. Although using the same MaxSea TZ requests a thebat
__________________
Baikal is offline   Reply With Quote
Old 24-03-2013, 23:57   #28
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: New grib presentation

Jean Pierre,

Did you get anywhere with my branch? I could help merging if you like.. I've been busy on the weather routing plugin... Let me know if there are any specifics.. or if you want to maybe start a new branch and it could be in a broken state we could both work on.

Quote:
Originally Posted by Baikal View Post
what else would like to see
2. settings for the wind speed (ms, kmh, kts) and pressure mBar, mmHg
3. color map for wind data
I have at least these two requests in my enhanced grib branch.. so hopefully when it is merged it will be really good. For the other stuff.. it's all coming eventually.
__________________
boat_alexandra is offline   Reply With Quote
Old 25-03-2013, 03:24   #29
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: New grib presentation

boat_alexandra

I have forked your grib_enhanced branch and tested it but at the moment I destroyed it , this seemed a little confusing (I am still not very skilled with git )
I like much your loop function
At the moment I have some difficulties with particular files ...
The different units are easy to implement
Also I would like to find a means to inform user what data are available in the file
....
JP
__________________
Ptizef is offline   Reply With Quote
Old 25-03-2013, 05:59   #30
Registered User
 
jonasaberg's Avatar

Join Date: Jul 2008
Location: Kristiansand, Norway
Boat: Wasa 410
Posts: 305
Re: New grib presentation

Guys&Gals,
I havent played with this so may be totally out of touch, but viewing the plots above what I miss is a legend with the velocities of the wind/current/wave height etc.
Maybe this is hard to implement?
__________________

__________________
jonasaberg 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
Pilot Grib Files - Similar to Pilot Charts rgleason OpenCPN 22 05-05-2015 04:15
Route Planning with GRIB - Work in Progress PjotrC OpenCPN 208 27-08-2012 01:31
grib weather plugin not visible geo38 OpenCPN 6 02-08-2012 16:45
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 22:33
GRIB Icon bzs OpenCPN 16 04-09-2011 07:43



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.