<div dir="ltr">Hi,<div><br></div><div>I have come across an instance where I&#39;m writing a variable to a file and the variable metadata in the file is getting overwritten, even though I&#39;m using (/ ... /) on the right-hand side of the write to file statement. That is, the statement</div><div>f-&gt;$varname$ = (/ tmpvar /)</div><div>is overwriting the metadata for the file variable $varname$ in the file pointed to by f. The attached script demonstrates the problem. This seems like an ncl bug to me.</div><div><br></div><div>Details of my script that seem to matter are:</div><div>1) the file is NetCDF4</div><div>2) the file variable whose metadata is getting overwritten has been defined in the file but not written to yet</div><div>3) the file variable whose metadata is getting overwritten does not have the _FillValue attribute</div><div>4) the variable on rhs of write to file statement has _FillValue attribute</div><div><br></div><div>The problem happens with ncl 6.3.0 on yellowstone. It does not happen with ncl 6.2.1, though with 6.2.1 the _FillValue gets added to the file variable&#39;s metadata, which is unexpected to me.</div><div><br></div><div>Keith</div></div>