Dear colleagues,
I'm using Matlab for writing the output from some computations to quite large NetCDF-Files. I have encountered a problem when multiple "workers" or processes try to write simultaneously to the same NetCDF-File. This, however, does only happen when using compressed and chunked NetCDF-Files; i.e. if the file is created without any compression or chunking, the problem does not occur.
However, writing to an unchunked file takes much more time. In my case, writing to unchunked files takes about 30 seconds compared to only about 0.1 seconds when the files are reasonably chunked.
Therefore, I would very much prefer to write to chunked NetCDF-files as this speeds up the computations significantly. Do you have an idea how a NetCDF-File must be created in order to write to the same chunked file using multiple processes or workers?
Best regards and many thanks in advance!