NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello Ben, this is quite typical, as in binary would use often more bits for storage. In ascii each letter/number is a byte, so a float can be just a few bytes, but in binary you have at least four if not eight depending on your machine . So often a formatted ascii with floats using only a few digits is smaller than the binary. 'hope this makes sense, best wishes, Joerg ________________________________ From: netcdfgroup-bounces@xxxxxxxxxxxxxxxx [netcdfgroup-bounces@xxxxxxxxxxxxxxxx] on behalf of Benoist LAURENT [benoist.laurent@xxxxxxx] Sent: 07 October 2015 14:45 To: netcdfgroup@xxxxxxxxxxxxxxxx Subject: [netcdfgroup] binary larger than text file Dear netcdf users, I have data I want to convert to nc format. This data is integers, floating point numbers and text. I created a dummy nc file containing text and I realize the binary file is larger that the text file. How come ? See by yourself: convert the joint file to binary using ncgen -b foo.nc.txt Thank you in advance for your help. Ben _______________________________________________ netcdfgroup mailing list netcdfgroup@xxxxxxxxxxxxxxxx For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
netcdfgroup
archives: