Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-04-2013, 06:11   #136
Registered User
 
rgleason's Avatar

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

Ptizef, It opens exactly correctly to your directory. I think it is something I am not doing in GIT to cause the error when running

Git checkout ptizef/NEW_GRIB
Git branch -a
Shows on "no head"

git clone https://github.com/Ptizef/OpenCPN/tree/NEW_GRIB.git
Cloning into 'NEW_GRIB'...
fatal: https://github.com/Ptizef/OpenCPN/tr....git/info/refs not found:
did you run git update-server-info on the server?

Then because it is clear I don't have a local respository for ptizef/NEW_GRIB because it is a plugin and not a branch, I tried
git checkout origin/master
git branch -a
Shows head is at "origin/master"
cd plugins
..and I try this command again
git clone https://github.com/Ptizef/OpenCPN/tree/NEW_GRIB.git
Cloning into 'NEW_GRIB'...
fatal: https://github.com/Ptizef/OpenCPN/tr....git/info/refs not found:
did you run git update-server-info on the server?

Same error. It must be something I have not done with git... Did you change the location of these files some time ago? Maybe I have to initialize git for this directory somehow?

Thanks Jean Pierre for your help.
__________________

__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 06:18   #137
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
Re: New Grib Presentation

rgleason

Try:

git clone -b NEW_GRIB https://github.com/Ptizef/OpenCPN.git

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 21-04-2013, 07:44   #138
Registered User
 
rgleason's Avatar

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

Thank you Thomas that worked. I need to get my head around GIT.

git clone -b NEW_GRIB https://github.com/Ptizef/OpenCPN.git

Quote:
-b <name>Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository's HEAD, point to <name> branch instead. In a non-bare repository, this is the branch that will be checked out. --branch can also take tags and detaches the HEAD at that commit in the resulting repository.
I believe this saved NEW_GRIB to grib_pi because there are todays dates.


Git - Git Basics

gitk that is distributed with Git. Gitk is basically a visual git log too
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 07:49   #139
Registered User
 
rgleason's Avatar

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

Yikes it downloaded 15336 objects. Did I get the full opencpn put somewhere? I was in the plugins directory. I'm afraid its pretty clear I don't know what I am doing all the time.

Did a git status and it appears it deleted a bunch of *.po files and other files in grib_pi.
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 09:06   #140
Registered User
 
rgleason's Avatar

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

Now I am having trouble figuring out where origin/master is located.
I've looked on sourceforge and github but have not found it.
I would like do GIT grib_pi from origin/master now.
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 09:32   #141
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
Re: New Grib Presentation

Quote:
Yikes it downloaded 15336 objects. Did I get the full opencpn put somewhere?
Most likely, I suppose you will now have the whole tree under your plugins directory.
Quote:
Now I am having trouble figuring out where origin/master is located.
The "master" repository is https://github.com/OpenCPN/OpenCPN (the Git URL: git://github.com/OpenCPN/OpenCPN.git) - but it actually does not mean that it has to be called "origin" on your machine as it depends on the order you added remote repositories... Brainfood: Git Reference

Whenever you are not sure what's what, use
Code:
git remote -v
in your local repository to see from where you actually are pulling the code...
And about
Code:
git branch -a
we have already talked somewhere else...

BTW, the merged code changes from Sean and J-P are already in the master, so if it's at least a bit possible, any further changes should be mergeable there, otherwise we will get insane

Pavel
__________________
nohal is offline   Reply With Quote
Old 21-04-2013, 10:29   #142
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Re: New Grib Presentation

Hi everybody!

I am not quite up-to-date but very interested in the topic. Therefor it would be kind if someone could answer me some questions, please:
  1. Is the current developement a replacement for the included GRIB PI or is it a separate PI?
  2. AFAIK there are two GRIB editions - GRIB 1 and 2.
    Does the new version/ plugin also support GRIB (edition) 2?
Many thanks in advance for enlightenment ...!

Gunther
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
Netsurfer is offline   Reply With Quote
Old 21-04-2013, 11:23   #143
Registered User
 
rgleason's Avatar

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

Quote:
Quote:
Yikes it downloaded 15336 objects. Did I get the full opencpn put somewhere?
Most likely, I suppose you will now have the whole tree under your plugins directory.
Did not find another full tree. Must have just been checking files in my repository.

Pavel:
Thanks for the git path and the git remote command, will use it. Clarification about where to fetch or pull Sean and J-P grib_pi.dll is very clear. Kind of fun herding newbies like me!

Netsurfer:
There is one grib_pi.dll now merged to the "master" repository as Pavel stated.
It is not clear which grib is 1&2 (Sean or J-P) as you are unclear.


As far as I know, J-P has one very good improvement with respect to requests for gribs through saildocs.com which is the "MODIFY" button for changing resolution and grib data, which is not in the current grib. Perhaps that can be included in near future? J-P?

There are some small anomalies in reading grib data from different formats, that will need to be fixed in the grib_pi.dll, but I believe those will be remedied eventually when there is some time. I have done a little study on this, but did not want to inject it into this process.
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 12:09   #144
Registered User
 
rgleason's Avatar

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

Also some small things that are different:
J-P's version is a little more compact with the slider bar on the first line and shorter.
J-P's version rounds the pressure isobar text and it appears a little smaller which is nice.
Sean's version Config has a more comprehensive setup for editiing and saving Data Type parameters which I think is better.

In time these and other things can be brought together, but the big thing is we now have one grib_pi to work on that can be improved. Perhaps J-P can make some of those small changes to the repository with Git?
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 12:10   #145
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,296
Re: New Grib Presentation

Hello,

Quote:
Originally Posted by Netsurfer View Post
Hi everybody!
I am not quite up-to-date but very interested in the topic. Therefor it would be kind if someone could answer me some questions, please:
  1. Is the current developement a replacement for the included GRIB PI or is it a separate PI?
  2. AFAIK there are two GRIB editions - GRIB 1 and 2.
    Does the new version/ plugin also support GRIB (edition) 2?
...Gunther
I ask myself the same questions.

Gilletarom.
__________________
Gilletarom is offline   Reply With Quote
Old 21-04-2013, 12:27   #146
Registered User
 
rgleason's Avatar

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

1. Is the current development a replacement for the included GRIB PI or is it a separate PI? - The grib_pi.dll in the master has been updated by (Grib_enhancement + NEW_Grib) The "current development" is grib_pi.dll in the "master".
(There are some small things that J-P may be able to move over.)

2. The new version of Opencpn will support either of the other grib plugins because opencpn.exe now has the necessary hooks. However I believe it is important to focus development on the "current grib_pi.dll" otherwise we will forever be wishing features in one or the other and there will be bugs that get fixed in one and not in the other which will be a huge annoyance!!! -Also I am not going to test two separate DLLs!

--So stay focused on the "Current Grib" is my suggestion and Development will move faster.

I believe Pavel will correct me if I have this wrong.
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 13:18   #147
Registered User
 
rgleason's Avatar

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

Pavel I like that Git command.

Quote:
git remote -v
Response:

C:\Data\..\opencpn-git>git remote -v
origin git://github.com/OpenCPN/OpenCPN.git (fetch)
origin git://github.com/OpenCPN/OpenCPN.git (push)
ptizef git://github.com/Ptizef/OpenCPN.git (fetch)
ptizef git://github.com/Ptizef/OpenCPN.git (push)
sean git://github.com/seandepagnier/OpenCPN.git (fetch)
sean git://github.com/seandepagnier/OpenCPN.git (push)

Just what I was looking for!
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 14:15   #148
Registered User
 
rgleason's Avatar

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

Jean Pierre, looking at Pavel's reference Git Reference it looks like you would PUSH your changes to

Quote:
git://github.com/OpenCPN/OpenCPN.git
using something like git push github master. Pavel could help I think.

Quote:
In a nutshell you can update your project with git fetch and share your changes with git push. You can manage your remote repositories with git remote.
__________________
rgleason is offline   Reply With Quote
Old 21-04-2013, 14:52   #149
Registered User
 
rgleason's Avatar

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

Jean Pierre, Pavel advises that you would send a Git Pull Request to him. See this Post #163 and the Post two before that.
__________________
rgleason is offline   Reply With Quote
Old 22-04-2013, 04:02   #150
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: New Grib Presentation

I am very sorry to not understand all what have been written above due to my bad English and my weak skill but I think the change I've done in NEW_GRIB are completely incompatible with master branch coming from NEW_GRIB and grib_enhancements merge
So when I work on master , what exactly I have to do to apply my change ?(a lot of things doesn't work and have to be fixed)
Jean Pierre
__________________

__________________
Ptizef 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 13:35.


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.