Replies: 1 comment
-
I am traveling and can't open your example. But I suspect the issue has to do with how compression works. In particular, if you are running a bunch of particles starting at the same location, when you save the output the compression in zarr will greatly reduce the size of the output file. But when you add diffusion, they will take different paths, and will no longer be compressed. This could also be an issue if you started all the particles at the same depth, and without diffusion they stay there, but with diffusion, they spread out. This will also make compression less effective. Another think that could trip up compression is if the size of the chunking changes between the two runs. To figure out what is going, open the files with zarr, not xarray...
now use the ".info" attribute to figure out what is going with each variable by typing
You will see Also check that the "Compressor" has not changed. Also, be sure your I hope this helps, p.s. The compression in this case is very dramatic, because the depth was fixed for this run. A more representative example is this horizontal coordinate:
|
Beta Was this translation helpful? Give feedback.
-
When running OceanParcels, we have noticed that the output
zarr
when adding a diffusion kernel (DiffusionUniformKh
) can be >10x larger relative to when we don't add diffusion. We tried investigating why the diffusion simulation output files are a lot larger but the contents appear identical once the file is loaded into anxarray DataSet
. The hidden metadata files also look very similar—if not identical. Does anyone have a sense of why this may be the case?We are attaching a notebook with a simple example showcasing this disparity in output file sizes. Thanks!
diffusion.zip
Beta Was this translation helpful? Give feedback.
All reactions