<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Glenn,<div><br></div><div>Dave's right about this likely being a missing csh issue.</div><div><br></div><div>Please see these cygwin notes about csh:</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Download/cygwin.shtml#SetUpCShell">http://www.ncl.ucar.edu/Download/cygwin.shtml#SetUpCShell</a></div><div><br></div><div>If you have "tcsh", then you may be able to create a soft-link as described in the above URL.</div><div><br></div><div>--Mary</div><div><br><div><div>On Jun 22, 2011, at 12:29 PM, David Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Glenn,<div><br></div><div>Just as a bit of background: ncl_convert2nc is a csh (C-shell) script that creates a temporary NCL script and then executes it with parameters derived from the command line. &nbsp;I am not sure exactly what is wrong but I suspect it is something to do the shell. &nbsp;The script is looking for /bin/csh. If you execute 'which csh', does it find /bin/csh?</div><div>If I explicitly use another shell to execute the script (on my mac - I don't have access to a Cygwin system at the moment), e.g.:</div><div><br></div><div>bash $NCARG_ROOT/bin/ncl_convert2nc &lt;some data file&gt;</div><div><br></div><div>I get an error that seems related to what you are seeing:</div><div><br></div><div><div>ncl_convert2nc: line 63: onintr: command not found</div><div>ncl_convert2nc: line 75: syntax error near unexpected token `('</div><div>ncl_convert2nc: line 75: `set idirs = ()'</div></div><div><br></div><div>If I instead run it using csh:</div><div><br></div><div>csh&nbsp;&nbsp;$NCARG_ROOT/bin/ncl_convert2nc &lt;some data file&gt;</div><div><br></div><div>I get no error. Maybe that will shed some light on your problem.</div><div>&nbsp;-dave</div><div><br></div><div><br><div><div>On Jun 22, 2011, at 9:33 AM, Comiskey, Glenn wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div>
<div dir="ltr" align="left"><span class="580095309-22062011"><font size="2" face="Arial">Hi,</font></span></div>
<div><span class="580095309-22062011"><font size="2" face="Arial"></font></span>&nbsp;</div>
<div><span class="580095309-22062011"><font size="2" face="Arial">Have just installed 
Cygwin/X and NCL Version 6.0.0 (CYGWIN), and setup the environment as per the 
instructions for installing and running NCL under Cygwin/X (Windows) (<a href="http://www.ncl.ucar.edu/Download/cygwin.shtml">http://www.ncl.ucar.edu/Download/cygwin.shtml</a>), 
but when running ncl_convert2nc it reports 'Badly placed 
()'s':</font></span></div>
<div><span class="580095309-22062011"><font size="2" face="Arial"></font></span>&nbsp;</div>
<div><span class="580095309-22062011"><font size="2" face="Arial">$ ncl 
-V<br>6.0.0<br></font></span><span class="580095309-22062011"><font size="2" face="Arial">$ ncl xy04n.ncl</font></span></div>
<div><span class="580095309-22062011"><font size="2" face="Arial">&nbsp;Copyright (C) 
1995-2011 - All Rights Reserved<br>&nbsp;University Corporation for Atmospheric 
Research<br>&nbsp;NCAR Command Language Version 6.0.0<br>&nbsp;The use of this 
software is governed by a License Agreement.<br>&nbsp;See </font><a href="http://www.ncl.ucar.edu/"><font size="2" face="Arial">http://www.ncl.ucar.edu/</font></a><font size="2" face="Arial"> for more 
details.<br></font></span><span class="580095309-22062011"><font size="2" face="Arial">$ ncl_convert2nc nmww3.t00z.grb&nbsp;&nbsp;&nbsp; #Note: This is a 
GRIB v2 file.<br>Badly placed ()'s.<br></font></span><span class="580095309-22062011"><font size="2" face="Arial">$ ncl_convert2nc 
CentralAtlantic.wind.grib&nbsp;&nbsp; #Note: This is a GRIB v1 file.<br>Badly 
placed ()'s.<br></font></span><span class="580095309-22062011"><font size="2" face="Arial">$ ncl_convert2nc akw.t12z.grib.grib2&nbsp;&nbsp;&nbsp; #Note: This is 
a GRIB v2 file.<br>Badly placed ()'s.<span class="664473215-22062011"><font color="#0000ff">&nbsp;</font></span></font></span></div>
<div><span class="580095309-22062011"><font size="2" face="Arial"><font color="#0000ff"></font>&nbsp;</font></span></div><font size="2" face="Arial"></font>
<div><span class="580095309-22062011"><font size="2" face="Arial">Haven't been able to 
find anything in mail archives or on&nbsp;<span class="664473215-22062011"><font color="#0000ff">the&nbsp;</font></span>Internet to explain what the fault 
is.</font></span></div>
<div><span class="580095309-22062011"><font size="2" face="Arial">&nbsp;</font></span></div><font size="2" face="Arial"></font>
<div align="left"><span lang="en-gb"><font size="2" face="Arial">Kind 
regards,</font></span></div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb"></span></font>&nbsp;</div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb">Glenn 
Comiskey</span></font></div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb">Data System 
Administrator</span></font></div>
<div align="left"><font color="#808080" size="1" face="Arial"><span lang="en-gb"></span></font>&nbsp;</div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb"><font color="#808080" size="1" face="Arial">Fugro Global Environment &amp; Ocean 
Sciences</font></span></font></div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb"><font color="#808080" size="1" face="Arial">Fugro House, Hithercroft Road</font></span></font></div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb"><font color="#808080" size="1" face="Arial">Wallingford, Oxfordshire OX10 9RB, UK<br>Registration No: 
2985431 / VAT No: GB 655475606</font></span></font></div>
<div align="left"><font color="#808080" size="1" face="Arial"><span lang="en-gb"></span></font>&nbsp;</div>
<div align="left"><font size="2" face="Arial"><span lang="en-gb"><font color="#808080" size="1" face="Arial">Tel: +44 (0) 1491 820500&nbsp;(Switchboard)&nbsp;/&nbsp;Tel: 
+44 (0) 1491 820559 (Direct) / Fax: +44 (0) 1491 820599<br>E-mail: 
</font></span><a title="mailto:m.silva@geos.com" href="mailto:g.comiskey@g.comiskey@geos.com"><span lang="en-gb" title="mailto:m.silva@geos.com"><u title="mailto:m.silva@geos.com"><font title="mailto:m.silva@geos.com" color="#0000ff" size="1" face="Arial">g.comiskey@geos.com</font></u></span></a><span lang="en-gb"><font color="#808080" size="1" face="Arial"> / Website: </font></span><a title="http://www.geos.comaddress/" href="http://www.geos.com/"><span lang="en-gb" title="http://www.geos.comaddress/"><u title="http://www.geos.comaddress/"><font title="http://www.geos.comaddress/" color="#0000ff" size="1" face="Arial">www.geos.com</font></u></span></a></font></div>
<div><font size="2" face="Arial"><font color="#808080" size="1"></font></font>&nbsp;</div>
<div><font color="#808080" size="1" face="Arial">Please note:</font></div>
<ul>
  <li>
  <div align="left"><font color="#808080" size="1" face="Arial">The information 
  contained in this message is privileged and confidential and intended only for 
  the use of the addresses.&nbsp; If you are not the intended recipient you 
  should not read, copy, distribute or otherwise use the 
  information;</font></div>
  </li><li>
  <div align="left"><font color="#808080" size="1" face="Arial">Fugro Global Environment 
  &amp; Ocean Sciences accepts no responsibility for loss or damage of any kind 
  arising from the use of this message;</font></div>
  </li><li>
  <div align="left"><font size="2"><font color="#808080" size="1" face="Arial">If you have 
  received this message in error, please note the sender immediately and delete 
  the message.</font><span lang="en-gb"></span></font></div><font size="2"></font></li><font size="2"></font></ul><font size="2"><font face="Arial">
<div align="left"><br></div></font></font>
<div>&nbsp;</div></div>
_______________________________________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br></blockquote></div><br></div></div>_______________________________________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br></blockquote></div><br></div></body></html>