<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: Î¢ÈíÑźÚ; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<table width="99.99%" height="100%" style="padding: 10px; background-color: transparent;" border="0" cellpadding="0" cellspacing="0" background="cid:_Foxmail.1@c01b2c53-45b3-2299-dbd8-056c8041c157">
<tbody><tr>
<td valign="top" style="width:100%;height:100%;line-height:160%;font-size:10.5pt;">
<div style="">
<div><span></span>hi,</div><div>&nbsp; &nbsp;i have make a time variable, the patial code as follows:</div><div><br></div><div>***********************************************************</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">time=new((/18262/),"integer","No_FillValue")<br>yyyymmdd&nbsp;=&nbsp;yyyymmdd_time(2001,&nbsp;2050,&nbsp;"integer")<br>time!0="time"<br>time&amp;time=yyyymmdd&nbsp;<br>time@units="days&nbsp;since&nbsp;2001-1-1&nbsp;0:0"<br>time@long_name="time"<br>**********************************************<br><br>after inputing the above coding in ncl shell, then using the two following command:<br>print(time) &nbsp;and print(time&amp;time)</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">but they gave different result.<br><br></span><span style="background-color: rgba(0, 0, 0, 0);"><font color="#ff0000">ncl&nbsp;16&gt;&nbsp;print(time)</font></span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br><br>Variable:&nbsp;time<br>Type:&nbsp;integer<br>Total&nbsp;Size:&nbsp;73048&nbsp;bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;18262&nbsp;values<br>Number&nbsp;of&nbsp;Dimensions:&nbsp;1<br>Dimensions&nbsp;and&nbsp;sizes:&nbsp;&nbsp;&nbsp;[time&nbsp;|&nbsp;18262]<br>Coordinates:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time:&nbsp;[20010101..20501231]<br>Number&nbsp;Of&nbsp;Attributes:&nbsp;2<br>&nbsp;&nbsp;long_name&nbsp;:&nbsp;&nbsp;&nbsp;time<br>&nbsp;&nbsp;units&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;days&nbsp;since&nbsp;2001-1-1&nbsp;0:0<br>(0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(7)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(8)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(9)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>(10)&nbsp;&nbsp;&nbsp;&nbsp;0<br>(11)&nbsp;&nbsp;&nbsp;&nbsp;0<br>(12)&nbsp;&nbsp;&nbsp;&nbsp;0<br><br>--------------------------------------------------------------<br><br></span><span style="background-color: rgba(0, 0, 0, 0);"><font color="#ff0000">ncl&nbsp;17&gt;&nbsp;print(time&amp;time)</font></span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br><br>Variable:&nbsp;time&nbsp;(coordinate)<br>Type:&nbsp;integer<br>Total&nbsp;Size:&nbsp;73048&nbsp;bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;18262&nbsp;values<br>Number&nbsp;of&nbsp;Dimensions:&nbsp;1<br>Dimensions&nbsp;and&nbsp;sizes:&nbsp;&nbsp;&nbsp;[time&nbsp;|&nbsp;18262]<br>Coordinates:<br>Number&nbsp;Of&nbsp;Attributes:&nbsp;2<br>&nbsp;&nbsp;units&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;days&nbsp;since&nbsp;2001-1-1&nbsp;0:0<br>&nbsp;&nbsp;long_name&nbsp;:&nbsp;&nbsp;&nbsp;time<br>(0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010101<br>(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010102<br>(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010103<br>(3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010104<br>(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010105<br>(5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010106<br>(6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010107<br>(7)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010108<br>(8)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010109<br>(9)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20010110<br>(10)&nbsp;&nbsp;&nbsp;&nbsp;20010111<br>(11)&nbsp;&nbsp;&nbsp;&nbsp;20010112<br><br><br>++++++++++++++++++++++++++++++++++++++++++++++++++<br><br>but they showed different result, why they cannot give the same result like other NCEP files?</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">thanks for your advice!&nbsp;<br></span></div>
<div><br></div><div><br></div><div><br></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>dyjbean@163.com</div></div></span></div>
<div></div></div>
</td>
</tr>
</tbody></table>
</body></html>