From: chris lernihan on
I'm writing data from Matlab to netcdf (.nc) files for archiving purposes. How do I know if the data is arranged correctly in the .nc files. In matlab a semi-colon means new row, but how do I interpret this in netcdf. If semi-colon returns a new row in netcdf then my data's shape is changing. For instance a 2X6 would become a 1X12. Not what I want. Also, with respect to Dimensions...it seems to want the variable with the greatest dimension to appear first. Tell me all you can about dimensions. There's isn't a lot of documentation in matlab other than basics. thanks.
From: Steven Lord on

"chris lernihan" <cannedbeans(a)hotmail.com> wrote in message
news:huldsp$21j$1(a)fred.mathworks.com...
> I'm writing data from Matlab to netcdf (.nc) files for archiving purposes.
> How do I know if the data is arranged correctly in the .nc files. In
> matlab a semi-colon means new row, but how do I interpret this in netcdf.
> If semi-colon returns a new row in netcdf then my data's shape is
> changing. For instance a 2X6 would become a 1X12. Not what I want.
> Also, with respect to Dimensions...it seems to want the variable with the
> greatest dimension to appear first. Tell me all you can about dimensions.
> There's isn't a lot of documentation in matlab other than basics.
> thanks.

Well, this documentation:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/netcdf.html

includes the statement:

"To use these functions, you should be familiar with the information about
netCDF contained in the NetCDF C Interface Guide for version 3.6.2. "

So I'd start by reading through that interface guide. If that doesn't
answer your questions, feel free to ask again.

But just out of curiosity, why did you choose to use netCDF files to archive
your data rather than simply using SAVE to save the data in MAT-files? Is
it because you expect other applications to need to interact with the
archive files?

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com