String Variables with Dimension - very big output file!

Mar 24, 2011 at 4:33 PM

 Hi! I create simple NetCDF-4 file - BUT get strange result - very big growing output file, if I use String vars & dimension. For example, try this example - with 10 STRING variables AND 1 shared dimension (for each) - will be created file above 177 MB! 

var ds = DataSet.Open("test.nc?openMode=create");

var dims = new[] { "DIM" }; 

for(var i=0; i<10; i++) 

{

   var v = ds.Add<string>("str_" + i, dims);

   ds.PutData(v.ID, "data");

}

What is wrong? Pls, I need your help! 

P.S. I use last version of SDS. Windows 7, Visual Studio 2010...