<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><br></div><div>&nbsp;thank you for your reply,i will restudy &nbsp;the rule of netcdf &nbsp;processed in NCL , i have not found before.</div><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>At 2016-01-30 00:14:44, "Dennis Shea" &lt;shea@ucar.edu&gt; wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr"><div><div><div><div>By netCDF rule, the type of _FillValue must match the the type of the variable with which it is associated.<br><br></div>You have:<br>&nbsp;&nbsp; <span style="color:rgb(0,0,0);background-color:transparent">FSDSatt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp;True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;==type logical&nbsp;&nbsp; <br>&nbsp;&nbsp; </span><span style="color:rgb(0,0,0);background-color:transparent">FSDSatt@_FillValue=9.999E20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;== type float<br><br></span></div><span style="color:rgb(0,0,0);background-color:transparent">Hence, 'type mismatch'.<br><br></span></div><span style="color:rgb(0,0,0);background-color:transparent">The solution, use<br><br></span></div><span style="color:rgb(0,0,0);background-color:transparent">&nbsp;&nbsp;&nbsp; FSDSatt&nbsp; = 1.0&nbsp;&nbsp; &lt;== type float<br></span><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 10:43 PM, <a href="mailto:dyjbean@163.com">dyjbean@163.com</a> <span dir="ltr">&lt;<a href="mailto:dyjbean@163.com" target="_blank">dyjbean@163.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<table style="padding:10px;background-color:transparent" height="100%" background="cid:6751335c$1$1529000d48f$Coremail$dyjbean$163.com" border="0" cellpadding="0" cellspacing="0" width="99.99%">
<tbody><tr>
<td style="width:100%;height:100%;line-height:160%;font-size:10.5pt" valign="top">
<div>
<div><span></span><br></div>
<div>hi,</div><div>&nbsp; when i create a nc file with ncl , and assign _FillValue in it, part of code shows the following:</div><div>+++++++++++++++++++++++++++++++++++++++++++++ &nbsp;</div><div>&nbsp;&nbsp;<span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%">filevardef(fout01,"FSDS","float",(/"time","lat","lon"/))</span></div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FSDSatt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp;True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FSDSatt@mode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp;"time-dependent"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FSDSatt@units&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp;"W/m2"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FSDSatt@long_name&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp;"incident&nbsp;solar&nbsp;(FSDS)"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FSDSatt@_FillValue=9.999E20<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filevarattdef(fout01,"FSDS",FSDSatt)</span><div>&nbsp; &nbsp;++++++++++++++++++++++++++++++++++++++++++++</div><div><br></div><div>but the error information from the operation shows the below:</div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%">ncendef:&nbsp;ncid&nbsp;131072:&nbsp;NetCDF:&nbsp;Not&nbsp;a&nbsp;valid&nbsp;data&nbsp;type&nbsp;or&nbsp;_FillValue&nbsp;type&nbsp;mismatch</span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%"><br></span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%">i want to know how to assign _FillValue in nc file in ncl script?</span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%"><br></span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%">thanks&nbsp;</span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%"><br></span></div><hr style="width:210px;min-height:1px" align="left" color="#b5c4df" size="1"><span class="HOEnZb"><font color="#888888">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:dyjbean@163.com" target="_blank">dyjbean@163.com</a></div></div></span></div>
<div></div></font></span></div>
</td>
</tr>
</tbody></table>
</div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>