This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Rick: You should have recieved a patch to netcdf/libsrc/posixio.c which appears to fix the problem you reported. Thank you for providing a test case. For your information, your program will run about twice as fast if you add the flag NC_ALIGN_CHUNK to nc_open(). If you use this flag on your initial nc_create, the redef may take almost no time. Beyond NC_ALIGN_CHUNK, you can use nc__open() (two underbars) and fool around with the 'chunksizehint' parameter and get at least another factor of two out of it. -glenn