String Variables with Dimension - very big output file!

Mar 24, 2011 at 5:34 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...

Mar 25, 2011 at 4:34 PM
Edited Mar 25, 2011 at 4:56 PM

Hi,

I have reproduced the result. It happens only for strings, numeric types work properly. Now it is not clear what the reason is; we will investigate the problem.

 

Regards,

Dmitry

Apr 2, 2011 at 10:53 AM

Hi! Problem is solved? whenever???

Jun 13, 2011 at 2:36 PM
Edited Jun 13, 2011 at 2:36 PM

Ну че, мужики? Проблему решать будем или только сопли жуем? Куда проще было самому написать обертку вокруг Си-библиотеки, чем использовать ЭТО.