Possible 5.0.0 bug: ncclose/Not a valid ID

From: Dave Allured <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Wed, 12 Dec 2007 18:51:41 -0700

After installing NCL 5.0.0 on Mac OS 10.4.11, we are getting an
unexpected error upon exit from several scripts. The message is:

   ncclose: ncid 0: NetCDF: Not a valid ID

Is anyone else on Mac or other systems getting this exit message?

Please see my script and log below. This is related to addfile or
Netcdf. When the addfile statement is commented out, the spurious
error goes away.

The error occurs when the script exits, not at the time of addfile.
  The error does not occur with NCL 4.3.0. Another clue is that the
error does not occur in a script that accesses binary data rather
than Netcdf (fbinrecread vs. addfile).

========================================================
Test script:

begin
   f = addfile ("scrip_simple.nc", "r")
   print ("Done.")
end

(Any Netcdf data file will do.)

========================================================
Session:

mac56:~/naonset/ncl/1212 129> uname -a
Darwin mac56.cdc.noaa.gov 8.11.0 Darwin Kernel Version 8.11.0: Wed
Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power
Macintosh powerpc

mac56:~/naonset/ncl/1212 130> ncl4.3 bugtest.ncl
  Copyright (C) 1995-2007 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 4.3.0
  The use of this software is governed by a License Agreement.
  See http://www.ncl.ucar.edu/ for more details.
(0) Done.

mac56:~/naonset/ncl/1212 131> ncl bugtest.ncl
  Copyright (C) 1995-2007 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 5.0.0
  The use of this software is governed by a License Agreement.
  See http://www.ncl.ucar.edu/ for more details.
(0) Done.
ncclose: ncid 0: NetCDF: Not a valid ID
========================================================

Thank you for any insight or advice.

Dave Allured
CU/CIRES Climate Diagnostics Center (CDC)
http://cires.colorado.edu/science/centers/cdc/
NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
http://www.cdc.noaa.gov/

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Dec 12 2007 - 18:51:41 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 13 2007 - 09:06:05 MST