<div dir="ltr"><div>Hi,<br>Thanks Dennis. For other users that run into this behavior, a workaround to avoid it is to ensure that the variable on the rhs of the problematic assignment does not have the _FillValue attribute. I.e.<br> if (isatt(tmpvar, "_FillValue")) then<br> delete(tmpvar@_FillValue)<br> end if<br></div>Keith<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 2, 2015 at 8:44 AM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A JIRA ticket [ NCL-2302 ] has been opened. THX<br>
<div><div class="h5"><br>
On Mon, Nov 2, 2015 at 8:06 AM, Keith Lindsay <<a href="mailto:klindsay@ucar.edu">klindsay@ucar.edu</a>> wrote:<br>
> Hi,<br>
><br>
> I have come across an instance where I'm writing a variable to a file and<br>
> the variable metadata in the file is getting overwritten, even though I'm<br>
> using (/ ... /) on the right-hand side of the write to file statement. That<br>
> is, the statement<br>
> f->$varname$ = (/ tmpvar /)<br>
> is overwriting the metadata for the file variable $varname$ in the file<br>
> pointed to by f. The attached script demonstrates the problem. This seems<br>
> like an ncl bug to me.<br>
><br>
> Details of my script that seem to matter are:<br>
> 1) the file is NetCDF4<br>
> 2) the file variable whose metadata is getting overwritten has been defined<br>
> in the file but not written to yet<br>
> 3) the file variable whose metadata is getting overwritten does not have the<br>
> _FillValue attribute<br>
> 4) the variable on rhs of write to file statement has _FillValue attribute<br>
><br>
> The problem happens with ncl 6.3.0 on yellowstone. It does not happen with<br>
> ncl 6.2.1, though with 6.2.1 the _FillValue gets added to the file<br>
> variable's metadata, which is unexpected to me.<br>
><br>
> Keith<br>
><br>
</div></div>> _______________________________________________<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></div></div>