<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I recently compiled ncl_ncarg-6.3.0 for one of our users.&nbsp; She has written the ncl script below:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">; NCL script to time interpolate hycom to 1 hour time interval
<o:p></o:p></p>
<p class="MsoNormal">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<o:p></o:p></p>
<p class="MsoNormal">;load &quot;/usr/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">setfileoption(&quot;nc&quot;,&quot;Format&quot;,&quot;LargeFile&quot;)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">ii=2<o:p></o:p></p>
<p class="MsoNormal">fileno_in=sprintf(&quot;%04.0f&quot;,ii)<o:p></o:p></p>
<p class="MsoNormal">iii=ii-1<o:p></o:p></p>
<p class="MsoNormal">fileno_out=sprintf(&quot;%04.0f&quot;,iii)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">file_out = &quot;/lustre04/vol0/crookscj/ncl/reems/test_&quot;&#43;fileno_out&#43;&quot;.nc&quot;<o:p></o:p></p>
<p class="MsoNormal">file_in = &quot;/lustre04/vol0/crookscj/ncl/reems/SV_tides_100m_his_&quot;&#43;fileno_in&#43;&quot;.nc&quot;<o:p></o:p></p>
<p class="MsoNormal">file_time = &quot;/lustre04/vol0/crookscj/ncl/reems/SV_tides_500m_his_&quot;&#43;fileno_in&#43;&quot;.nc&quot;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">fin = addfile(file_in,&quot;r&quot;)<o:p></o:p></p>
<p class="MsoNormal">ftime = addfile(file_time,&quot;r&quot;)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">system(&quot;ncgen -o &quot;&#43;file_out&#43;&quot; SV_his.cdl&quot;)<o:p></o:p></p>
<p class="MsoNormal">out = addfile(file_out,&quot;w&quot;)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The script appears to work until the last statement which generates the &#8220;Zero length dimension&#8221; errors.&nbsp; She has checked the file created by &#8220;ncgen&#8221; and feels it is correct.&nbsp; She has looked through the FAQ and did not find anything she
 felt was helpful.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">We are wondering if I have missed something in the compile steps or setting up the user environment.&nbsp;&nbsp; I have attached a copy of the script, a log file with the error messages and a file with the steps I took to compile the software.&nbsp; I
 have also attached the lua module file which sets the environment.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I am trying to collect the data and rewrite the script so that everything would be contained in the current directory.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Please let me know if this should be more appropriately posted to ncl-talk.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks for your help.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Cindy<o:p></o:p></p>
</div>
</body>
</html>