<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. She has written the ncl script below:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<o:p></o:p></p>
<p class="MsoNormal">;load "/usr/lib/ncarg/nclscripts/csm/contributed.ncl"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">setfileoption("nc","Format","LargeFile")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ii=2<o:p></o:p></p>
<p class="MsoNormal">fileno_in=sprintf("%04.0f",ii)<o:p></o:p></p>
<p class="MsoNormal">iii=ii-1<o:p></o:p></p>
<p class="MsoNormal">fileno_out=sprintf("%04.0f",iii)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">file_out = "/lustre04/vol0/crookscj/ncl/reems/test_"+fileno_out+".nc"<o:p></o:p></p>
<p class="MsoNormal">file_in = "/lustre04/vol0/crookscj/ncl/reems/SV_tides_100m_his_"+fileno_in+".nc"<o:p></o:p></p>
<p class="MsoNormal">file_time = "/lustre04/vol0/crookscj/ncl/reems/SV_tides_500m_his_"+fileno_in+".nc"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">fin = addfile(file_in,"r")<o:p></o:p></p>
<p class="MsoNormal">ftime = addfile(file_time,"r")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">system("ncgen -o "+file_out+" SV_his.cdl")<o:p></o:p></p>
<p class="MsoNormal">out = addfile(file_out,"w")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The script appears to work until the last statement which generates the “Zero length dimension” errors. She has checked the file created by “ncgen” and feels it is correct. 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> </o:p></p>
<p class="MsoNormal">We are wondering if I have missed something in the compile steps or setting up the user environment. 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. I
have also attached the lua module file which sets the environment.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </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> </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> </o:p></p>
<p class="MsoNormal">Thanks for your help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cindy<o:p></o:p></p>
</div>
</body>
</html>