<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>   <span style="color:rgb(0,0,0);background-color:transparent">FSDSatt           =    True                  &lt;==type logical   <br>   </span><span style="color:rgb(0,0,0);background-color:transparent">FSDSatt@_FillValue=9.999E20      &lt;== type float<br><br></span></div><span style="color:rgb(0,0,0);background-color:transparent">Hence, &#39;type mismatch&#39;.<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">    FSDSatt  = 1.0   &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:_Foxmail.1@6b99c783-328f-bf7a-80c8-9c73c14c17e1" 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>  when i create a nc file with ncl , and assign _FillValue in it, part of code shows the following:</div><div>+++++++++++++++++++++++++++++++++++++++++++++  </div><div>  <span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:160%">filevardef(fout01,&quot;FSDS&quot;,&quot;float&quot;,(/&quot;time&quot;,&quot;lat&quot;,&quot;lon&quot;/))</span></div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">      FSDSatt           =    True<br>      FSDSatt@mode      =    &quot;time-dependent&quot;<br>      FSDSatt@units     =    &quot;W/m2&quot;<br>      FSDSatt@long_name =    &quot;incident solar (FSDS)&quot;<br>      FSDSatt@_FillValue=9.999E20<br>      filevarattdef(fout01,&quot;FSDS&quot;,FSDSatt)</span><div>   ++++++++++++++++++++++++++++++++++++++++++++</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: ncid 131072: NetCDF: Not a valid data type or _FillValue type 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 </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>