Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 24-06-2013, 15:46   #241
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: New Grib Presentation

The "New Grib" has a feature that allows gribs to be interpolated over time. This feature requires that the lat and lon do not change between data sets. The following fix allows gribs with changing lat and lon to display if "interpolate between gribs" is not checked on the Grib Settings dialog.

Code:
diff --git a/plugins/grib_pi/src/GribUIDialog.cpp b/plugins/grib_pi/src/GribUIDialog.cpp
index ede3a01..dad66f0 100644
--- a/plugins/grib_pi/src/GribUIDialog.cpp
+++ b/plugins/grib_pi/src/GribUIDialog.cpp
@@ -874,8 +874,10 @@ GribTimelineRecordSet* GRIBUIDialog::GetTimeLineRecordSet(wxDateTime time)
     else 
         interp_const = (nminute-minute1) / (minute2-minute1);
     
-    if(!m_OverlaySettings.m_bInterpolate)
-        interp_const = round(interp_const);
+    if(!m_OverlaySettings.m_bInterpolate){
+        im1 = i;
+        interp_const = 0;
+    }
 
     GribRecordSet &GRS1 = rsa->Item(im1), &GRS2 = rsa->Item(i);
     return new GribTimelineRecordSet(GRS1, GRS2, interp_const);
Chuck
__________________

__________________
ChuckSK is offline   Reply With Quote
Old 24-06-2013, 16:58   #242
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: New Grib Presentation

Great. Thank you ChuckSK. This seems like a good option to have when data downloads are slow, perhaps JP can work the Grib Moving Forecast "distance" and "direction" fields/VALUES into the Saildocs requests too?

I am still finding myself making grib requests in Windows and using them in Linux. Don't know how Sean does it.

ps. p_dub, if you post in the correct thread, weather_routing, and explain a little more, somone might answer you. -Weather_routing is a big application.
__________________

__________________
rgleason is offline   Reply With Quote
Old 24-06-2013, 17:22   #243
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: New Grib Presentation

Rick

That fix has nothing to do with data downloads. It fixes the problem that HUR450502 reported.
__________________
ChuckSK is offline   Reply With Quote
Old 24-06-2013, 17:57   #244
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: New Grib Presentation

Quote:
Rick

That fix has nothing to do with data downloads. It fixes the problem that HUR450502 reported.
Yes, I understand. I was thinking ahead, that by restricting the grib area, because you can have a "Moving Forecast", you can cut down on the amount of data!
__________________
rgleason is offline   Reply With Quote
Old 25-06-2013, 04:12   #245
Registered User

Join Date: Feb 2013
Location: Germany, Bavaria
Boat: Jeanneau Sun Fizz 40'
Posts: 98
Re: New Grib Presentation

First of all: You are just GREAT!!! You seem really to be enthusiastic about your product. Excellent.

Now two remarks:

1. I understand that the current implementation of the interpolation does not allow for "moving GRIBS", therefore it should be disabled (not checked) if using "moving GRIBs" with the fix built by ChuckSK. My question now ist, what would be the effort to combine both features, thereby also interpolating the movement? This would - I think - make the thing just perfect.....

2. I tried to use the "mail function" to receive the GRIBs directly via OpenCPN. My question is, would there be a possibility of an interface to Airmail, so the request could be built there and then sent via HF?

Please bear with me, if I am not using the proper proceure to mention suggestions, I am a complete "newbie" here and will have to learn the correct "etiquette", where to do what. Also, I cannot really participate, as - even having worked in IT for 40 years - I haven't coded anything in the "PC world" and do not have the proper environment here. However, I would be ready to do whatever testing is required, to participate in the frther development and improvement of this great tool you have created. O.K.??

One oterh thing to mention - I saw some mentioning of weather routing - I believe, including "moving GRIBS" into this project too would be quite interesting, however, as you do not now, what the optimum routing would be, I think setting the correct or useable "Moving Forecast" is a bit tricky, isn't it?

Best regards and thanks again for all your efforts,

Uwe

P.S.: My first Name is "Uwe" in German the correct name is "Hans-Uwe", last name "Reckefuss" and from the userID you can estimate my almost "biblical" age ..... 450502 .... :-) (YYMMDD)
__________________
HUR450502 is offline   Reply With Quote
Old 25-06-2013, 04:58   #246
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: New Grib Presentation

Uwe, I wrote a long note to you and just lost it.
You are welcome join our testing group, that would be great, we thrive on volunteer efforts.

Sean Depagnier (and others) have been programming plugins to enhance Opencpn.
Some of Sean's plugins are
Watchman - manage and set alarms
Weatherfax
Climatology - gridded monthly data works wx-routing
Weather_routing - uses Gribs and Climatology
rtlsdr -assists with use of rtldsdr usb dongle for cheap AIS etc
Celestial Navigation
Also Sean and Jean Pierre have enhanced the original Grib plugin worked on by Pavel and Dave (bdbcat) and others I believe. As you can see this is a thriving collaborative volunteer effort. There are many areas you can help, even though you may not program. We need assistance testing, bug reporting, feature suggesting, and providing supporting documentation on the website for the plugins etc.

Start with this main plugin thread.. there are links to the other plugin threads.
Plugin Threads (List)
New Watchman Plugin
Weather Routing
Climatology
New rtlsdr Plugin
Celestial Navigation Plugin Redux
WeatherFax ...
New Grib Presentation
Grib Enhancements

There are many other good plugin threads too.
__________________
rgleason is offline   Reply With Quote
Old 26-06-2013, 10:18   #247
Registered User

Join Date: Feb 2013
Location: Germany, Bavaria
Boat: Jeanneau Sun Fizz 40'
Posts: 98
Re: New Grib Presentation

o.k., thanks a lot, I read through the other mentioned threads as well shortly, let me stay with this here for while....

Best regards, Uwe
__________________
HUR450502 is offline   Reply With Quote
Old 30-06-2013, 14:55   #248
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: New Grib Presentation

There are two Grib plugin "snapshots" with the new interface which work with Opencpn 3.2.0:

Quote:
grib_win32_pi18_v14_ov320_saildocs_pi.dll
girb_win32_pi18_v22_ov320_saildocs_zygrib.dll
These versions work with Opencpn 3.2.0.

Found on Opencpn Beta File Thing rguser, rgpass under "Plugins-Beta-Opencpn 3.2.0"

Pavel, these dll's should probably be uploaded to opencpn.org for use by Opencpn 3.2.0 users, if you have time.
__________________
rgleason is offline   Reply With Quote
Old 20-07-2013, 15:29   #249
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: New Grib Presentation

Fast downloading of grib - perhaps Grib could be enhanced to do this?
Fast Downloading of GRIB Files

GFS Products
http://www.nco.ncep.noaa.gov/pmb/products/gfs/
__________________
rgleason is offline   Reply With Quote
Old 21-07-2013, 08:34   #250
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: New Grib Presentation

Regarding use of RTOFS current grib data type.

By using two instances of grib_pi:
1. Grib_pi with "Wind checked.
2. Grib2_pi with "Current" checked.

Weather_routing will use grib data (with wind and currents checked in separate grib_pi instances) to do a routing.

Please refer to the this post in the Weather_Routing Thread.

It would be great if the Grib_pi could be improved to have a dominant grib file and a secondary grib file.
__________________
rgleason is offline   Reply With Quote
Old 23-07-2013, 12:26   #251
Registered User

Join Date: Jul 2011
Posts: 104
Re: New Grib Presentation

Quote:
Originally Posted by Ptizef View Post
Well

The second problem , sending mail :
A standard library coming from wxWidgets is used .
In Windows it is necessary to declare one email system ( for example Thunderbird) as the main email system .When clicking "send" Thunderbird is open,an email is written ready to be sent.
The answer coming from Saildocs and Zygrib is returned to the sending address.
Resorting to this post by Ptizef, to request advice, as I use M2 Opera Mail as default client and the Grib plugin refuses to recognize it, thus rejecting my grib request. Seems that there is no way to tell the plugin what email client should it use. It keeps asking for MS Outlook, which I dont have/use.
Thanks -
__________________
alex2035 is offline   Reply With Quote
Old 23-07-2013, 13:46   #252
Registered User

Join Date: Aug 2010
Posts: 297
Re: New Grib Presentation

What about a field in the plugin to enter the smtp-server to be used. Is that a way to solve this question?
__________________
George64 is offline   Reply With Quote
Old 23-07-2013, 14:14   #253
Registered User

Join Date: Apr 2012
Location: Port Vila, Vanuatu
Boat: Van der Stadt Samoa 48
Posts: 127
Re: New Grib Presentation

I still use zygrib to download the grib-files for two reasons. First reason is that i use the FTP possibility, and second i use the meteotable to get an overview of the weather development for the area i am going to sail.
__________________
Taarnskov is online now   Reply With Quote
Old 29-07-2013, 04:40   #254
Registered User

Join Date: May 2012
Location: West Africa
Boat: Jeanneau Sun Legende 41
Posts: 52
Send a message via Skype™ to jean_pfoumf
Re: New Grib Presentation

Hello.
I use OpenCPN 3.3.719 on MacBook with OSX 10.6.8
It doesn't seem possible to select a grib file, other than the last one opening by default.
Items are grey in the select list so no other grib file can be choose.
Did I do something wrong ?

Jean
Attached Thumbnails
Click image for larger version

Name:	Capture d’écran 2013-07-29 à 10.37.53.png
Views:	96
Size:	181.7 KB
ID:	64788  
__________________
jean_pfoumf is offline   Reply With Quote
Old 29-07-2013, 05:22   #255
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: New Grib Presentation

Jean,
correct, it is a bug. The file requester does nicht handle compressed *.bz2 files but only *.grb files. The grib plugin loads however the newest *.bz2 file in the folder of downloaded grib files when said so in the settings.
As a temporary workaround you may uncompress your *.bz2 files if needed until the bug was fixed.

Gerhard
__________________

__________________
CarCode 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 00:58.


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.