Cruisers Forum
 


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 24-03-2013, 01:06   #16
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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, 115 views)
Ptizef is offline   Reply With Quote
Old 24-03-2013, 06:44   #17
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
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 offline   Reply With Quote
Old 24-03-2013, 08:55   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 09:08   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 09:16   #20
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
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, 09:21   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 10:51   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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:	276
Size:	398.3 KB
ID:	57769   Click image for larger version

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

Click image for larger version

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

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

Click image for larger version

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

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

Click image for larger version

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

Name:	New_Grib-Cannot-Read-ZeroByte-File.jpg
Views:	239
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:	256
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:	240
Size:	281.0 KB
ID:	57778  

Click image for larger version

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

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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:	424
Size:	398.3 KB
ID:	57784  
Attached Files
File Type: doc New_Grib-Break-src-msw-Utilgui-cpp[198]-CallStack.doc (3.8 KB, 65 views)
File Type: doc New_Grib-Break-src-msw-Utilgui-cpp[198]-CallStack-2nd-Time.doc (3.8 KB, 73 views)
rgleason is offline   Reply With Quote
Old 24-03-2013, 15:34   #24
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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, 18:40   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 19:31   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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:	263
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:	257
Size:	406.5 KB
ID:	57813  

Click image for larger version

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

Join Date: Sep 2012
Location: Baikal
Posts: 581
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, 22:57   #28
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
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.
seandepagnier is offline   Reply With Quote
Old 25-03-2013, 02:24   #29
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
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, 04:59   #30
Registered User
 
jonasaberg's Avatar

Join Date: Jul 2008
Location: Kristiansand, Norway
Boat: Wasa 410
Posts: 309
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


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 03:15
Route Planning with GRIB - Work in Progress PjotrC OpenCPN 208 27-08-2012 00:31
grib weather plugin not visible geo38 OpenCPN 6 02-08-2012 15:45
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
GRIB Icon bzs OpenCPN 16 04-09-2011 06:43

Advertise Here


All times are GMT -7. The time now is 14:26.


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.