Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 15-08-2015, 12:42   #466
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by rgleason
The grib_pi got hung up on an old RTOFS file which does not have Wind and I had to wait to shutdown Opencpn and restart, but that file might be corrupted.

Sean
Quote:
I don't care if the file is corrupted if the program gets stuck then we should fix that. Can you post the file?
Sure, here is one that hangs eventually for me. OpenCPN freezes.

It is too big to upload here so it will be in the main directory of
Opencpn Beta File Thingie rguser rgpass

RTOFS20150619174405933.grb.doc
__________________

rgleason is offline   Reply With Quote
Old 13-01-2016, 15:58   #467
Registered User
 
rgleason's Avatar

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

In updating the Grib_pi plugin for various small improvements, one improvement is to fixed and minimum spacing. In windows the menu is not free to shrink vertically and there is too much empty space when I take a screenshot.

Can someone add the ability to shrink the menu vertically?
It will help us get meaningful images for the documentation.

(Linux screenshots are better, because the space is closed up, but I don't run that.)

Thanks
Attached Thumbnails
Click image for larger version

Name:	Grib-Settings-Data-Waves.png
Views:	83
Size:	23.8 KB
ID:	116668  
__________________

rgleason is offline   Reply With Quote
Old 13-01-2016, 17:34   #468
Registered User
 
rgleason's Avatar

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

For Grib_pi, In windows, the menu is not free to shrink vertically and there is too much empty space when I take a screenshot. It would be even better if the space was automatically eliminated, and the Menu would automatically adjust to what is needed.

----
HOWEVER, I don't need it now. I have cut out the blank areas in the screenshots.
rgleason is offline   Reply With Quote
Old 09-12-2017, 21:06   #469
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by boat_alexandra View Post
Does anyone know of a web access to grib files we can support in the plugin? It would be faster and more automatic than email.
Sean, would this do it?
An entire set of instructions using get, wget etc.
Fast Downloading of GRIB Files Partial http transfers
http://www.cpc.ncep.noaa.gov/product...ding_grib.html
rgleason is offline   Reply With Quote
Old 11-12-2017, 07:54   #470
Registered User
 
rgleason's Avatar

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

Maitai's post on grib sources
Free Routing Software. qtVlm

FYI following some discussions on other topics with skiron people, they agreed to make their directories index-able, so you can now use in qtVlm customized grib download these addresses:

Index of /gribs_wrf_4km
Index of /gribs_wrf_12km
Index of /gribs_skiron
Index of /saildocs
rgleason is offline   Reply With Quote
Old 11-12-2017, 14:25   #471
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: washington
Boat: bristol 27
Posts: 3,184
Re: New Grib Presentation

Am I missing something, or the "partial grib" described only allows various fields (eg, precipitation, wind etc) it doesn't allow partial geographic regions which is what we really need.

Fast Downloading of GRIB Files
boat_alexandra is offline   Reply With Quote
Old 11-12-2017, 21:19   #472
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,099
Re: New Grib Presentation

Sean/Rick...

This server is what we use in Android. One can specify the geographical area, parameters of interest, time scale, etc.

Works fine, for what is does. Has lots of parameters. 3 model grids (1.0, 0.5, and 0.25 degree)

So far, very reliable.

Dave
bdbcat is online now   Reply With Quote
Old 12-12-2017, 06:58   #473
Registered User
 
rgleason's Avatar

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

Dave, Thanks for your post. This is great to know. I just wrote Wesley at Noaa asking how we define a select area. Can you please advise how this is done, perhaps with an example call?

Maybe then Sean or Ptizif can program a direct request for Grib_pi?

-Sean, hope you are in a warmer climate and comfortable.
rgleason is offline   Reply With Quote
Old 12-12-2017, 07:45   #474
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,099
Re: New Grib Presentation

Rick...

What one does is to "craft" a specific URL containing the lat/lon, parameters required, etc. When that URL is accessed, the NOAA server prepares the file on demand.

Here is a sample URL from Android GRIB fetch. You can try the URL manually in browser, catch the GRIB file, and show it like normal. Note the "subregion" parameters. This sets the coverage area desired.

So, the fiddly work activity is to build code to craft the URL conforming to the user's specified parameters.

http://nomads.ncep.noaa.gov/cgi-bin/...gfs.2017121206


Good Luck
Dave
bdbcat is online now   Reply With Quote
Old 12-12-2017, 08:03   #475
Registered User
 
rgleason's Avatar

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

Thank you Dave.

Quote:
nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t06z.pgrb2.1p00.f000&v ar_UGRD=on&var_VGRD=on&lev_10_m_above_ground=on&su bregion=&leftlon=-85&rightlon=-74&toplat=34&bottomlat=21&dir=%2Fgfs.2017121206
on&subregion=
&leftlon=-85
&rightlon=-74
&toplat=34
&bottomlat=21

I found a 1k file in my browser download gfs.t06z.pgrb2.1p00.f000
Which when I add .grb to the end, shows up in the Grib_pi and loads, showing below.

We now have a path to create direct downloads in grib_pi!
Attached Thumbnails
Click image for larger version

Name:	Screenshot (34).jpg
Views:	19
Size:	387.3 KB
ID:	160420  
rgleason is offline   Reply With Quote
Old 12-12-2017, 08:27   #476
Registered User
 
rgleason's Avatar

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

The Fast Downloading Page has a Sample script which downloads a time span.

Quote:
do
url="http://nomad3.ncep.noaa.gov/pub/reanalysis-2/6hr/pgb/pgb.$date"
get_inv.pl "${url}.inv" | grep ":VGRD:" | grep ":10 mb" | \
get_grib.pl "${url}" pgb.$date
date=$(($date + 1))
if [ $(($date % 100)) -eq 13 ] ; then
date=$(($date - 12 + 100));
fi
done
rgleason is offline   Reply With Quote
Old 12-12-2017, 08:39   #477
Registered User
 
rgleason's Avatar

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

The second page of Fast Downloading shows a script get_gfs.pl. that uses perl I believe.

Fast Downloading of GRIB Files, Part 2

I don't have perl on this machine, but perhaps it should be considered.

Part of Wesley's script's header is this

Quote:
# simple script to download gfs files
# inspired by Dan Swank's get-narr.pl script
# this script uses the tecnique described in
# Fast Downloading of GRIB Files
#
# arguments: action YYYYMMDDHH HR0 HR1 DHR VAR_LIST LEV_LIST DIRECTORY
#
# action = inv (display inventory of 1st file)
# data (get data)
#
# HR0, HR1, DHR: forecast hour parameters
# do f_hour = HR0, HR1, DHR (fortran)
# for (f_hour = HR1; f_hour <= HR1; f_hour = f_hour + DHR) (C)
#
# VAR_LIST: list of variable separated by colons, blanks replaced by underscore
# ex. HGT:TMP:OZONE
# LEV_LIST: list of levesl separated by colons, blanks replaced by underscore
# ex. 500_mb:sfc
#
# DIRECTORY: name of the directory in which to place the files
rgleason is offline   Reply With Quote
Old 12-12-2017, 09:12   #478
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,099
Re: New Grib Presentation

Rick...

This feature should be built into the Plugin itself, not calling out to a script. External scripts are a sure route to cross-platform incompatibility.

The Plugin API includes methods for arbitrary file download, so all one needs to do is craft the URL(s) (c++ code here), and call the API. Not really trivial, but not impossibly complex either.

Dave
bdbcat is online now   Reply With Quote
Old 12-12-2017, 10:17   #479
Registered User
 
rgleason's Avatar

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

Dave, thanks. How is the Android App doing it? Would that code help? Maybe I should try the App and see how it works.... Never knew it had that feature!
rgleason is offline   Reply With Quote
Old 12-12-2017, 15:35   #480
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,099
Re: New Grib Presentation

Rick...

On Android, the code to generate URLs and fetch GRIBs is all in java on the Android OS. Java is, well, something like c++, but not exactly. So not directly portable.

Anyway, on Android, we craft the lat/lon limits by simply taking the limits of what is shown on the screen at the time of the request.

I assume on desktop we want the user to drag a rectangle region on the chart to select the area of interest. Not difficult, but will require an experienced c++/wxWidgets plugin author to build.

Dave
__________________

bdbcat is online now   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 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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:44.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.