> @Jorgen,
>
> I was also following that site but its very confusing. My text file
> has 2 columns, but the rows are 52 million. I was trying to make my
> output into an array for netcdf but how can I do that without
> specifying the number of rows? What if I don't know how many rows
> there are?
(You just said they were 52e6, but I guess that was just an example.)
That's a good question. But I cannot answer it. Maybe someone else
here can, but I suspect few have come in contact with this library,
and digging into the API is likely to take some time even for
experienced programmers.
Perhaps that's just not part of the problem they try to solve.
Perhaps your data should be like a huge, fixed-size Excel sheet
(although that seems very limiting). I cannot tell, since I don't
understand the domain.
> My background is very minimal in coding. I have very small amount of
> experience in matlab, and started learning c++ two months ago. The
> netcdf thing is for my homework. It wasn't taught in my lecture but
> its a part of the assignment.
Ok, I see.