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

Re: adding time-invariant variables to a netCDF file



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