[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #VYY-644727]: patch to support writing v3 netCDF files via the netcdf_c++4 API

Hi Sylwester,

> In the netcdf_c++4 API the data/define mode switch is not automatic for
> netCDF3 files. Consequently, creating and writing "classic" files with
> netcdf_c++4 is impossible without reopening, and redefining classic
> files is not possible at all.
> I'm sending in attachment a patch (and a modified source tree as well)
> that fixes it.  Perhaps there's a more elegant way to implement it
> (i.e. without calling nc_enddef/nc_redef with each API call) but this
> one is quite straightforward and it works well.
> I've introduced two relevant checks into test_classic.cpp as well.

Thanks for your patch!

Rather than apply it immediately, I've forwarded it to the developer, Lynton 
He is preparing some additional enhancements for the next version of 
and should be able to combine your patch with those changes.


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: VYY-644727
Department: Support netCDF
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.