<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><br></div><div> thank you for your reply,i will restudy the rule of netcdf 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" <shea@ucar.edu> 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> <span style="color:rgb(0,0,0);background-color:transparent">FSDSatt = True <==type logical <br> </span><span style="color:rgb(0,0,0);background-color:transparent">FSDSatt@_FillValue=9.999E20 <== 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"> FSDSatt = 1.0 <== 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"><<a href="mailto:dyjbean@163.com" target="_blank">dyjbean@163.com</a>></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> 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,"FSDS","float",(/"time","lat","lon"/))</span></div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"> FSDSatt = True<br> FSDSatt@mode = "time-dependent"<br> FSDSatt@units = "W/m2"<br> FSDSatt@long_name = "incident solar (FSDS)"<br> FSDSatt@_FillValue=9.999E20<br> filevarattdef(fout01,"FSDS",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>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>