<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi it seems that I was premature in my celebrations yesterday. The file I sent for runs of trcit below zero degress work okay .........except picking up the files. When I ran the script for various numbers of years (year per file) it was clear that my values
 were around the same regardless of how many years (or files) that I inputted.</p>
<p>&nbsp;</p>
<p>Then I remembered that I had changed the following;</p>
<p>&nbsp;</p>
<span lang="EN-GB">
<p>spell_tot_uk(:,nr,:,:) = dim_sum_n(cold_uk1(:<font size="1"><font size="2">,{spell(nr)},:,:,:),0)
</font></font></p>
<p><font size="1"><font size="2"></font></font>&nbsp;</p>
<font size="1">
<p><font size="2">spell_tot_uk(0,nr,:,:) = dim_sum_n(cold_uk1(0,{spell(nr)},:,:,:),0)&nbsp; as I was trying to get around a dimension #0 mis-match. This is the variable that relates to file that has been inputted.</font></p>
<p><font size="2"></font>&nbsp;</p>
<p><font size="2">So can I ask another NCL-Talk question on how to get around this please?</font></p>
<p><font size="2"></font>&nbsp;</p>
<p><font size="2">The portion of the script it relates to is below and a copy of the full script and summary of the key variables are attached (join relates to number of files, spell the length of the cold run taking the tcrit from all ensembles at all times/steps)</font></p>
<p>&nbsp;</p>
<span lang="EN-GB">
<p><font size="2">n1 = 1</font></p>
<p><font size="2">n2 = 60 ; ispan to specify all spells</font></p>
<p><font size="2">spell = ispan(n1,n2,1) ; eg n1=1, n2=20</font></p>
<p><font size="2">;;spell = (/1, 1, 10/) ; manually specify</font></p>
<p><font size="2">nspell = dimsizes(spell) </font></p>
<p><font size="2">spell_tot_uk = new( (/njoin,nspell,nlat,mlon/), &quot;float&quot;) ; preallocate</font></p>
<p><font size="2">dimspell = dimsizes(spell_tot_uk)</font></p>
<p><font size="2">njoin = dimspell(0)</font></p>
<p><font size="2">nspell = dimspell(1) ; same as &quot;run_length&quot;</font></p>
<p><font size="2">nlat = dimspell(2)</font></p>
<p><font size="2">mlon = dimspell(3)</font></p>
<p><font size="2">do nr=0,nspell-1</font></p>
<p><font size="2">spell_tot_uk(:,nr,:,:) = dim_sum_n(cold_uk1(:,{spell(nr)},:,:,:),0)
</font></p>
<p><font size="2">end do</font></p>
<p><font size="2">spell_tot_uk!1 = &quot;spell&quot;</font></p>
<p><font size="2">spell_tot_uk&amp;spell = spell</font></p>
<p><font size="2">copy_VarCoords(cold_uk1(0,0,0,:,:), spell_tot_uk(0,0,:,:)) ; trick for coords</font></p>
<p><font size="2">printVarSummary(spell_tot_uk)</font></p>
</span>
<p><font size="2"></font>&nbsp;</p>
<p><font size="2">Any help greatly appreciated</font></p>
<p><font size="2"></font>&nbsp;</p>
<p><font size="2">kind regards</font></p>
<p><font size="2"></font>&nbsp;</p>
<p><font size="2">Dominique</font><font size="1"></p>
</font></font></span></div>
</body>
</html>