I am not completely familiar with the changes from netCDF 3 to netCDF 4 but I
believe the 'string' type is a variable length string. It looks to me as if
you are putting one character in each string, the LenRecord is not needed.
This would probably require storage of a pointer of perhaps 8 bytes and a
string length (of value 1) of perhaps another 8 bytes to define each
character, increasing the size of the file by about a factor of 17.
What you probably want is either a character type:
char record(Natoms, LenRecord) ;
or a string type without the length of the string specified:
string record(Natoms) ;
On 10/07/15 07:45, Benoist LAURENT wrote:
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/
--
Larry Oolman
Department of Atmospheric Science
University of Wyoming
Dept. 3038, 1000 E. University Ave.
Laramie, WY 82071
ldoolman@xxxxxxxx
http://www.uwyo.edu/atsc