<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Pat,</p>
<p><br>
</p>
<p>I'm very glad you found the solution, and if I any one else contacts me with the same problem, I'll be able to pass along your wisdom! 
<br>
</p>
<p><br>
</p>
<p>Best,</p>
<p><br>
</p>
<p>Danny<br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
Daniel C. Bowman<br>
Doctoral Candidate in Geophysics<br>
UNC Chapel Hill<br>
phone: 575-418-8555<br>
<b>curriculum vitae</b>:  http://www.unc.edu/~haksaeng/curriculum_vitae/bowman_cv.pdf
<br>
<b>LinkedIn</b>:  <a id="LPNoLP" title="Ctrl+Click or tap to follow the link" href="https://www.linkedin.com/in/dannycbowman" class="view-public-profile">
https://www.linkedin.com/in/dannycbowman</a><br>
web:http://geosci.unc.edu/page/daniel-c-bowman<br>
twitter: @dannycbowman<br>
<br>
</div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> rnomads-user-bounces@lists.r-forge.r-project.org <rnomads-user-bounces@lists.r-forge.r-project.org> on behalf of Patrick King <king.pws@gmail.com><br>
<b>Sent:</b> Wednesday, December 9, 2015 9:57 PM<br>
<b>To:</b> Announcements, feature requests, and help using rNOMADS<br>
<b>Subject:</b> Re: [Rnomads-user] Problems with MacOS</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif">Hello Again,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">I think I have found a way around this problem from the RStudio support page.  You set $PATH in .bash_profile and then start RStudio from the command line.  R then picks up the path including
 wgrib.  I prefer navigating via terminal windows anyway.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default">
<div class="gmail_default"><font face="monospace, monospace">> system("wgrib2")</font></div>
<div class="gmail_default"><font face="monospace, monospace">wgrib2 v0.2.0.3 11/2015 Wesley Ebisuzaki, ...</font><font face="verdana, sans-serif">.. </font></div>
<div class="gmail_default"><font face="verdana, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">Hopefully I can do some of my plots tomorrow.</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">Apparently this has something to do with Mac increasing their security.  I also had troubles installing McIDAS-X because of similar changes.</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">Pat</font></div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Dec 10, 2015 at 2:22 AM, Patrick King <span dir="ltr">
<<a href="mailto:king.pws@gmail.com" target="_blank">king.pws@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif">Thanks for your response Danny.  </div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">Here is the response to the pwd command:</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><span class="">
<div class="gmail_default">> system("wgrib2")</div>
<div class="gmail_default">sh: wgrib2: command not found</div>
</span>
<div class="gmail_default">> system("pwd", intern=TRUE)</div>
<div class="gmail_default">[1] "/Users/pking/SCI/rNomads"</div>
<div class="gmail_default">> </div>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">I tried setting the path in both bash_profile and /etc/environment, but R could not see it in either case.  Apparently Mac OS X does not consult /etc/environment.  This article (<a href="https://support.enthought.com/hc/en-us/articles/204469160-How-do-I-set-PYTHONPATH-and-other-environment-variables-for-Canopy-" target="_blank">https://support.enthought.com/hc/en-us/articles/204469160-How-do-I-set-PYTHONPATH-and-other-environment-variables-for-Canopy-</a>)
 suggests a way of doing it.  I will try to figure that out and report later.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">pat</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Dec 10, 2015 at 12:46 AM, Bowman, Daniel <span dir="ltr">
<<a href="mailto:haksaeng@live.unc.edu" target="_blank">haksaeng@live.unc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Patrick,</p>
<p><br>
</p>
<p>Thank you, I'm glad rNOMADS has been useful.  First of all, where are you adding wgrib2 to the path variable?  If you're using your local bash user profile, it could be that R never calls bash and thus never uses it.  In Linux, I always set it in /etc/environment,
 so that the variable is set for all users in all environments.</p>
<p><br>
</p>
<p>What does system("pwd", intern=TRUE) give you?  <br>
</p>
<p><br>
</p>
<p>Keep me posted!<br>
<br>
Danny<br>
</p>
<p><br>
</p>
<div>
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper">Daniel C. Bowman<br>
Doctoral Candidate in Geophysics<br>
UNC Chapel Hill<br>
phone: <a href="tel:575-418-8555" value="+15754188555" target="_blank">575-418-8555</a><br>
<b>curriculum vitae</b>:  <a href="http://www.unc.edu/~haksaeng/curriculum_vitae/bowman_cv.pdf" target="_blank">
http://www.unc.edu/~haksaeng/curriculum_vitae/bowman_cv.pdf</a> <br>
<b>LinkedIn</b>:  <a title="Ctrl+Click or tap to follow the link" href="https://www.linkedin.com/in/dannycbowman" target="_blank">
https://www.linkedin.com/in/dannycbowman</a><br>
web:<a href="http://geosci.unc.edu/page/daniel-c-bowman" target="_blank">http://geosci.unc.edu/page/daniel-c-bowman</a><br>
twitter: @dannycbowman<br>
<br>
</div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b>
<a href="mailto:rnomads-user-bounces@lists.r-forge.r-project.org" target="_blank">
rnomads-user-bounces@lists.r-forge.r-project.org</a> <<a href="mailto:rnomads-user-bounces@lists.r-forge.r-project.org" target="_blank">rnomads-user-bounces@lists.r-forge.r-project.org</a>> on behalf of Patrick King <<a href="mailto:king.pws@gmail.com" target="_blank">king.pws@gmail.com</a>><br>
<b>Sent:</b> Wednesday, December 9, 2015 7:28 AM<br>
<b>To:</b> Announcements, feature requests, and help using rNOMADS<br>
<b>Subject:</b> Re: [Rnomads-user] rNOMADS 2.1.6 released</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif">Hello Danny,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">Thank you very much for your nomads work.  I have used it to extract GFS data and plot cross-sections using RAOB. I enjoy looking at your balloon work.  I was the forecaster for a research project
 studying stratospheric ozone based in Saskatchewan in 1975 and the pictures bring back memories of the ballon launches. We even had some go astray too.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">I am migrating from a dual Linux/Windows system to a Macintosh and I cannot get rNomads to work.  The problem seems to be in accessing wgrib2.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">Here is a snippet from my bash terminal:</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(195,55,32)">
~/SCI/rNomads $<span style="color:rgb(0,0,0)"> echo $PATH</span></p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">/Users/pking/ ...   n:/usr/local/wgrib2:/usr/local/wgrib</p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo"><span style="color:rgb(195,55,32)">~/SCI/rNomads $</span> wgrib2 fcst.grb</p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">1:0:d=<a href="tel:2015120900" value="+12015120900" target="_blank">2015120900</a>:TMP:800 mb:6 hour fcst:</p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">2:131801:d=<a href="tel:2015120900" value="+12015120900" target="_blank">2015120900</a>:RH:800 mb:6 hour fcst:</p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">3:378897:d=<a href="tel:2015120900" value="+12015120900" target="_blank">2015120900</a>:TMP:2 m above ground:6 hour fcst:</p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">4:627907:d=<a href="tel:2015120900" value="+12015120900" target="_blank">2015120900</a>:RH:2 m above ground:6 hour fcst:</p>
<p style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(195,55,32)">
~/SCI/rNomads $<span style="color:rgb(0,0,0)"> </span></p>
<div><span style="color:rgb(0,0,0)"><br>
</span></div>
<div><span style="color:rgb(0,0,0)">So wgrib2 is on my path and it does find 'fcst.grb' downloaded by rNomads.  However rNomads can't find wgrib2 from within R:</span></div>
<div><span style="color:rgb(0,0,0)"><br>
</span></div>
<div>
<div>[Workspace loaded from ~/SCI/rnomads/.RData]</div>
<div><br>
</div>
<div>> system("wgrib2")</div>
<div>sh: wgrib2: command not found</div>
<div>> </div>
</div>
<div><br>
</div>
<div>DO you have any idea where I should look now?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Pat</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov 15, 2015 at 12:30 AM, Bowman, Daniel <span dir="ltr">
<<a href="mailto:haksaeng@live.unc.edu" target="_blank">haksaeng@live.unc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello all,</p>
<p><br>
</p>
<p>I've just released rNOMADS 2.1.6.  It now allows you to define a region to return data from in ReadGrib.  This should speed up data processing by orders of magnitude for those of you who are using archived grib data (such as gfs-anl), since those don't give
 an option to subset server-side.</p>
<p><br>
</p>
<p>Let me know if you have any questions or suggestions for further work.</p>
<p><br>
</p>
<p>Best,</p>
<p><br>
Danny<br>
</p>
<p><br>
</p>
<div>
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper">Daniel C. Bowman<br>
Doctoral Candidate in Geophysics<br>
UNC Chapel Hill<br>
phone: <a href="tel:575-418-8555" value="+15754188555" target="_blank">575-418-8555</a><br>
<b>curriculum vitae</b>:  <a href="http://www.unc.edu/~haksaeng/curriculum_vitae/bowman_cv.pdf" target="_blank">
http://www.unc.edu/~haksaeng/curriculum_vitae/bowman_cv.pdf</a> <br>
<b>LinkedIn</b>:  <a title="Ctrl+Click or tap to follow the link" href="https://www.linkedin.com/in/dannycbowman" target="_blank">
https://www.linkedin.com/in/dannycbowman</a><br>
web:<a href="http://geosci.unc.edu/page/daniel-c-bowman" target="_blank">http://geosci.unc.edu/page/daniel-c-bowman</a><br>
twitter: @dannycbowman<br>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Rnomads-user mailing list<br>
<a href="mailto:Rnomads-user@lists.r-forge.r-project.org" target="_blank">Rnomads-user@lists.r-forge.r-project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rnomads-user" rel="noreferrer" target="_blank">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rnomads-user</a><br>
<br>
<span><font color="#888888"></font></span></blockquote>
<span><font color="#888888"></font></span></div>
<span><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr"><font face="georgia, serif">Patrick King<br>
Mobile: <a href="tel:%2B1%20647%20525%206738" value="+16475256738" target="_blank">
+1 647 525 6738</a></font></div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Rnomads-user mailing list<br>
<a href="mailto:Rnomads-user@lists.r-forge.r-project.org" target="_blank">Rnomads-user@lists.r-forge.r-project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rnomads-user" rel="noreferrer" target="_blank">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rnomads-user</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr"><font face="georgia, serif">Patrick King<br>
Mobile: <a href="tel:%2B1%20647%20525%206738" value="+16475256738" target="_blank">
+1 647 525 6738</a></font></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr"><font face="georgia, serif">Patrick King<br>
Mobile: +1 647 525 6738</font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>