scipy/scipy — pull request #3444 by mromberg (2014-03-09 22:38:53+00:00)
Title: Add support for updating existing netcdf files

Adds support for update mode. This allows for one to open an existing netcdf file and add data to it. I used the "a" flag for the mode to be compatible with the Scientific.IO.NetCDF library and the unidata C interface.

This patch opens the file using the "r+" mode for new files and then calls _read() and _write if the mode is "a". I did not do extensive testing. But a quick check of opening an existing netcdf file and adding a new global attribute worked fine.