netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.
How big is your file and variable size? Have you used chunking storage? If your file(variable) size is very small, it is not a surprise. HDF5 needs to store the internal metadata in the object header. Also netCDF-4 also stores its own internal metadata. Kent On Tue, May 1, 2012 at 2:15 AM, Denuder Marco <MDenuder@xxxxxxxxxxxxxxxxxxxx > wrote: > Hello > > > > I’ve got a question about the .nc output filesize. When I create a .nc > file out of a .csv file, the .nc file always turns out to be much bigger in > size than the .csv file which is not very logic. Isn’t the binary file > supposed to be smaller than the csv file? I’m talking about an increment in > size of approximately 400%. The more variables I create in the NetCDF4 > format, the bigger the increment in size. > > > > Can anyone tell me if that is meant to be or how I can reduce the size? (I > tried to use the built-in NetCDF4-compression function “zlib”, but the > files turned out to be even slightly bigger than the uncompressed ones) > > > > I work with: > > · Windows (32bit) > > · Python 3.2 using > > o Library: numpy-1.6.1 > > o Library: netcdf4-0.9.6-py3.2 > > > > I wrote the NetCDF4 programs according to this link: > > > > http://netcdf4-python.googlecode.com/svn/trunk/docs/netCDF4-module.html > > > > Thanks a lot! > > > > > > > Please consider the environment before printing this email! > > ------------------------------ > > ***DISCLAIMER*** > > The information and any attachments (herein referred to as 'document') > transmitted is intended only for the person or entity to which it is > addressed. It may contain confidential and/or privileged information. If > you are not the intended recipient of this document, you are hereby > notified that any dissemination, distribution, copying, other use of, or > taking any action in reliance upon this document by persons or entities > other than the intended recipient is illegal and prohibited. If you have > received this in error, please immediately notify the sender, permanently > delete the original from any computer and/or system, and destroy any > printout of the 'document'. We thank you for your co-operation in this > matter. Pilatus Aircraft Ltd. > > _______________________________________________ > netcdf-hdf mailing list > netcdf-hdf@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ > -- Kent Yang The HDF Group 1800 So. Oak St., Suite 203, Champaign, IL 61820 217.531.6107 http://hdfgroup.org http://hdfeos.org