Please ignore my previous message. The problem was in another part of the program that forgot to close files. Thanks, Charles
netcdfgroup