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 02-06-2016, 17:46   #1
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
GRIB file loading issues

Hi,

while I was trying weather routing (which works nicely) I found some shortcomings in the area of GRIB file handling:
  1. the information that the grib plugin shows about loaded grib files is very sparse. All I can find is the list of timestamps. Should we not show the first and last timestamp, number of loaded grib files, and perhaps even the list of loaded files and holes in the resulting timespan?
  2. It is not very clear which operations reset the list of loaded GRIB files, and which ones add to the list.
  3. If no GRIB file is loaded, the plugin tries to load the newest GRIB file. This is based on filename suffixes, including suffixes ".bz2" and ".gz" which are also used for non-GRIB files, resulting in a "this is not a GRIB file" error. Should we not ignore such files if they are not GRIB files?
I might start sending patches for this, but seems the whole GRIB handling is already worked on by others so that might be a waste of time. Please advise.
nkiesel is offline   Reply With Quote
Old 03-06-2016, 03:17   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

Norbert grib reads gz grib files, they do not need to be unpacked.
rgleason is offline   Reply With Quote
Old 03-06-2016, 03:23   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

Saw your pr. Format and data checking is good but how would we be able to test new grib types if restricted, limited?
rgleason is offline   Reply With Quote
Old 03-06-2016, 03:23   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

Are you using linux?
rgleason is offline   Reply With Quote
Old 03-06-2016, 17:40   #5
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: GRIB file loading issues

Quote:
Originally Posted by rgleason View Post
Norbert grib reads gz grib files, they do not need to be unpacked.
Yes, correct. I do not plan to change that. I just want to avoid that O shows the error "famous_quotes.gz is not a valid GRIB file" just because that file is newer than the recently downloaded grib file in the same directory.
nkiesel is offline   Reply With Quote
Old 03-06-2016, 17:40   #6
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: GRIB file loading issues

Quote:
Originally Posted by rgleason View Post
Are you using linux?
Yes, I do. Why is that relevant for this?
nkiesel is offline   Reply With Quote
Old 03-06-2016, 17:43   #7
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: GRIB file loading issues

Quote:
Originally Posted by rgleason View Post
Saw your pr. Format and data checking is good but how would we be able to test new grib types if restricted, limited?
My proposed patch only changes the behavior of "getLatestGribFileFromDIrectory" which tries to automatically load the latest (and thus presumably most likely wanted) GRIB file when the plugin starts. You can always use the file chooser to load other GRIB files. Sorry for not making that clearer.
nkiesel is offline   Reply With Quote
Old 03-06-2016, 17:59   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

Importance. I use win and do not know if anyone has fotten it running w weather routing
rgleason is offline   Reply With Quote
Old 06-06-2016, 05:11   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

My cell phone writing mangled my message. Sorry.
I understand now. I think your improvement to grib file is fine. We will be able to pick any file anyway.

I have not gotten Weather_routing working in Windows 10 yet. Will try more tonight.
rgleason is offline   Reply With Quote
Old 06-06-2016, 05:35   #10
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: GRIB file loading issues

Weather routing works fine for me with Win 10 on a laptop.

However on a small tablet it computes the route, predicts a reasonable elapsed time but does not display either the route or the isochrons. Are there any boxes I might have forgotten to tick?

Thanks,

Aedan


Sent from my iPhone using Cruisers Sailing Forum
AedanC is online now   Reply With Quote
Old 06-06-2016, 05:37   #11
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: GRIB file loading issues

Apologies, I should have said the tablet is Windows 10 as well.


Sent from my iPhone using Cruisers Sailing Forum
AedanC is online now   Reply With Quote
Old 06-06-2016, 09:56   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

AedanC thanks. I was not clear. which version of O? We are trying to test a newly built version under Opencpn v4.2.1 beta
rgleason is offline   Reply With Quote
Old 06-06-2016, 12:33   #13
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: GRIB file loading issues

Apologies again, I should have provided a lot more detail the first time.

My comments for both the tablet and laptop Windows 10 were referring to OpenCpn 4.2.0.

I did try 4.2.1724 a while ago but the routing would not work, I think due to an incompatibility with the Grib plugin. If there are new versions of the plugins that I can download in compiled form I'd be happy to try them out again.

Apologies again for not being clear the first time.

Yesterday I did a 45 nm passage taking the route suggested by the routing plugin on 4.2.0 and we arrived within ten minutes of the predicted time.

Aedan
AedanC is online now   Reply With Quote
Old 08-06-2016, 07:18   #14
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: GRIB file loading issues

Please refer to http://www.cruisersforum.com/forums/...ml#post2139295 I found Pavel's earlier version (fork of Sean's repos) works under Windows Opencpn v4.2.0.

There was some guy who wanted Climatology Weather_routing run from Falmouth to LasPalmas. Because weather_routing wasn't working in 4.2 + I went back to v4.0 but found that Climatology for 3.2 does not work with v4.0 (of course it doesn't, we changed wxwidgets version)! Therefore there is NO version of Climatology on the Download page that works with Opencpn v4.0. This is probably the same situation with many plugins. I've deleted all the v4.0 plugins that I built, thinking they were on the website download page.

Anyway, I can't seem to find the Falmouth to Las Palmas guys post. - So it is run at the link above. Takes about 4 days starting today, with a fast boat 60ft_multi_3.pol was used.
rgleason is offline   Reply With Quote
Reply

Tags
loa, rib


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
How to Convert "*.route" Route File into ".*wpt" File To Be Used in Maxsea V.10 doiroda Navigation 7 12-03-2020 06:00
Loading two grib files W5PAD OpenCPN 7 20-05-2016 23:34
grib file not actionable in new Open CPN install glas OpenCPN 2 09-04-2013 02:41
3.0.0 : make package : bad file right after installing the deb file manuprenlair OpenCPN 1 12-06-2012 04:17
GRIB File Readers bvimatelot General Sailing Forum 0 17-06-2010 21:45

Advertise Here


All times are GMT -7. The time now is 23:39.


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.