<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div><div>Hi,</div></div></div><span id="OLK_SRC_BODY_SECTION"><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><span class="Apple-style-span">I am trying to use the ncl_convert2nc command to convert hdf files to netcdf but get the error: "</span>if: Expression Syntax<span class="Apple-style-span">". &nbsp;Here is the important information that I think you need:</span></div><div><br></div><div><div>[Laura-Brileys-MacBook:~] laura% ncl -V</div><div>6.1.2</div><div>[Laura-Brileys-MacBook:My Passport/Data/MERRA] laura% ncl_convert2nc MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf&nbsp;</div><div>if: Expression Syntax.</div><div>[Laura-Brileys-MacBook:My Passport/Data/MERRA] laura% uname -a</div><div>Darwin Laura-Brileys-MacBook.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun &nbsp;7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386</div></div><div><br></div><div>I have put one of the files on your ftp site:&nbsp;MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf</div><div><br></div><div>Others have had the same problem but I have not come across any solutions yet:</div><div><a href="http://www.ncl.ucar.edu/Support/talk_archives/2011/3210.html">http://www.ncl.ucar.edu/Support/talk_archives/2011/3210.html</a></div><div><a href="http://www.ncl.ucar.edu/Support/talk_archives/2010/2138.html">http://www.ncl.ucar.edu/Support/talk_archives/2010/2138.html</a></div><div><br></div><div>Laura Briley</div></div></div></span></body></html>