<div dir="ltr"><div><div>Hi Cathy,<br><br></div>I have opened a JIRA ticket:  NCL-2230<br><br></div><div>THX<br></div>D<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 8, 2015 at 2:31 PM, Cathy Smith (NOAA Affiliate) <span dir="ltr">&lt;<a href="mailto:cathy.smith@noaa.gov" target="_blank">cathy.smith@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">NCL staff<br>
I&#39;ve run into an issue a bunch of times where I was running code that<br>
creates a new netCDF file. If I&#39;m debugging or if I have updated data<br>
which goes into the file, when I open a file with status value &quot;c&quot;, the<br>
code fails as the file already exists. If the file doesn&#39;t exist yet,<br>
then I can&#39;t use &quot;w&quot; as a new file needs to be created. I can write<br>
something where I test for the file and if it exists, I can decide to<br>
delete the old copy first or write to the old file but it seems kludgy.<br>
I can of course delete the old file first when using &quot;c&quot; before running<br>
the code but sometimes I forget and sometimes someone else runs the code<br>
and gets a permission error which they don&#39;t understand.<br>
<br>
I was wondering if it would be useful to have 2 new status flags to<br>
addfile(s). Maybe &quot;cd&quot; and &quot;cw&quot;. The first would check for the file<br>
first and delete it if it already existed and then open the new file.<br>
The second would open the file with a &quot;w&quot; if it already existed. These<br>
would act more like C or Fortran flags. If a user was worried about<br>
accidentily deleting or writing to old files, they could still use &quot;c&quot;.<br>
<br>
It&#39;s just a suggestion and there could be issues I am not considering,<br>
of course.<br>
<br>
Cathy<br>
<br>
--<br>
----------------------------------------------<br>
NOAA/ESRL PSD and CU CIRES<br>
<a href="tel:303-497-6263" value="+13034976263">303-497-6263</a><br>
<a href="http://www.esrl.noaa.gov/psd/people/cathy.smith/" target="_blank">http://www.esrl.noaa.gov/psd/people/cathy.smith/</a><br>
<br>
Emails about data/webpages may get quicker responses from emailing<br>
<a href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a><br>
<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>