Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > Navigation
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 16-01-2013, 12:28   #1
Registered User

Join Date: Jan 2012
Posts: 53
Technical help with GRIB format? (yzGrib)

Hi,

I'm working on project to convert world current data into a grib files.

I've gotten to the point where I want to test the files, but yzGrib won't recognize any of my attempts or the saildocs version as a valid GRIB.

Here's links to the sample files I'm trying to test:

Baseline example file from saildocs.com
http://www.svsarana.com/temp/sample_current.grb

GRIB1 version
http://www.svsarana.com/temp/oscar.grb

GRIB2 Version:
http://www.svsarana.com/temp/oscar.grb2

None of these seem to work on yzGrib. Can someone else test them and see if you can find a problem or if any of them work? The oscar files should be a world simulation result showing direction and speed of current. They are big 3M and 6M.

Any advice on what might be wrong with the GRIB file parameters would be appreciated greatly.

Thanks,
Eric
Eric. is offline   Reply With Quote
Old 16-01-2013, 13:37   #2
Registered User

Join Date: Jan 2012
Posts: 53
Re: Technical help with GRIB format? (yzGrib)

I should mention that the sample_current.grb works on OpenCPN but not zyGrib.

Here's a snapshot of the differences between my new grb and the sample. (The sample file also has sea temperature data in addition to current data). Scroll the text to see all the data. The Level and the parameter names are different for starters....

Code:
sample_current.grb 
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter name
     1 : 2013-01-16 12:00:00       0       66      15 :    -0.26000    0.072745     0.46000 : var49      
     2 : 2013-01-16 12:00:00       0       66      14 :    -0.38000    0.040000     0.58000 : var50      
     3 : 2013-01-16 12:00:00       0       66      14 :      296.07      299.27      300.83 : var80      
cdo infon: Processed 198 values from 3 variables over 1 timestep ( 0.01s )
Code:
oscar.grb
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter name
     1 : 2013-01-11 00:00:00      15   577681  251085 :  0.00066114      182.13      360.00 : var1       
     2 : 2013-01-11 00:00:00      15   577681  251085 :  0.00018081     0.16572      3.0767 : var2       
cdo infon: Processed 1155362 values from 2 variables over 1 timestep ( 0.16s )
Eric. is offline   Reply With Quote
Old 16-01-2013, 13:51   #3
Registered User
 
Albro359's Avatar

Join Date: Jun 2009
Location: Elyse is in New Zealand
Boat: Amel Super Maramu 2000
Posts: 589
Re: Technical help with GRIB format? (yzGrib)

Eric, I can open your oscar.grib in Maxsea, but all it gives is pressure in colour and very crudely..ie no isobars
Sorry I can't help any further
Cheers
Alan
__________________
See you out there ....... Alan S.V. Elyse
now https://svelyse.weebly.com
older https://voyagesofDIVA.weebly.com
Albro359 is offline   Reply With Quote
Old 16-01-2013, 16:48   #4
Registered User
 
hwecken's Avatar

Join Date: Feb 2012
Location: Germany
Boat: HR382
Posts: 111
Re: Technical help with GRIB format? (yzGrib)

To open the current gribs in qtvlm was not possible
hwecken is offline   Reply With Quote
Old 16-01-2013, 21:15   #5
Registered User

Join Date: Jan 2012
Posts: 53
Re: Technical help with GRIB format? (yzGrib)

Thanks for the help. I think there must be a problem with yzGrib and current values.

However my files did have some formatting problems putting the current layers on the pressure grid and a few other issues that I think I fixed in this version. In fact I can get this file to open without errors in openCPN however no data is visible.

Can anyone view the current data on this grib?
http://www.svsarana.com/temp/grib3.grb
Eric. is offline   Reply With Quote
Old 17-01-2013, 02:27   #6
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Technical help with GRIB format? (yzGrib)

Zygrib: failure (Ugrib too, but that's different)
OpenCpn: very partial view with old plugin, nothing with current plugin.
Airmail-Viewfax: the best of the lot (partial world-wide view, very slow zoom to Bay of Biscay (Atlantic France and Spain). Hangs at further zoom level.
Attached Thumbnails
Click image for larger version

Name:	Image001.jpg
Views:	141
Size:	129.4 KB
ID:	52987   Click image for larger version

Name:	Image002.jpg
Views:	160
Size:	271.5 KB
ID:	52988  

Click image for larger version

Name:	Image003.jpg
Views:	128
Size:	194.9 KB
ID:	52989  
sailorF54 is offline   Reply With Quote
Old 17-01-2013, 06:04   #7
Registered User

Join Date: Jan 2012
Posts: 53
Re: Technical help with GRIB format? (yzGrib)

Thanks and bonus points for the screen shots! At least I'm making some progress. The files are pretty memory intensive so they will run slow since it's the whole globe.

Perhaps if I put the current data in as a wind layer it would be more universally accepted, even if incorrect.

I'll have to work on this some more. Hopefully when I'm finished I can get saildocs to add this service to their catalog. Thanks again. I'll probably be back again soon for some more tests.

Eric
Eric. is offline   Reply With Quote
Old 17-01-2013, 06:21   #8
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Technical help with GRIB format? (yzGrib)

You could have a look at the Grib2 format of the North Sea currents
Strömungen
linking to
ftp://ftp.bsh.de/Stroemungsvorhersagen/
sailorF54 is offline   Reply With Quote
Old 17-01-2013, 06:35   #9
Registered User

Join Date: Jan 2012
Posts: 53
Re: Technical help with GRIB format? (yzGrib)

Quote:
Originally Posted by sailorF54 View Post
You could have a look at the Grib2 format of the North Sea currents
Have you found these files to work in most viewers?

I'm only using grib1 because I thought it would be more compatible. Perhaps for current overlays that is a bad assumption.

EDIT: By the way, I've put a smaller data sub-set for testing which is just an area in the Caribbean. This smaller data file should be more representative of how people would use it instead of the full planet:
http://www.svsarana.com/temp/grib5.grb

FYI -- My version (5.0.56) of airmail's viewfax won't read GRIB2
Eric. is offline   Reply With Quote
Old 17-01-2013, 07:19   #10
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Technical help with GRIB format? (yzGrib)

There are classical gribs in the 'archiv section' that could give you a clue. These can be opened with Opencpn and airmail-viexfax (but not with zygrib: you could ask the author. He's known to be reactive)
Grib5 (Carib zone) opens fine with airmail-viewfax only
Zooming in and out is fast...
sailorF54 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


Advertise Here


All times are GMT -7. The time now is 20:02.


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.