Thanks for this. In our group, a few people have the newer 2010 version of Matlab with a built in netCDF library. This is good for one of my machines that does not have it. A few tweaks to my own codes here and there to use it but it works nicely. I am using it under SUSE.
I am using netcdf.m file with .nc format but I got this error:
Error using ==> reshape
To RESHAPE the number of elements must not change.
The outcome contains only 2 out of 3 matrix.
What should I do to resolve the error?
Excellent submission. Note that unsigned integer variables (uint8) seem to be loaded as signed integers (int8). I use the typecast function to correct that. I haven't checked for any other bugs. Thanks for this really useful function!
I haven't used it heavily yet so there may still be issues -- but it appears that this script works just fine for Matlab in Linux. (Ubuntu/Debian). It really ought to -- NETCDF is supposed to be platform agnostic.
??? Error using ==> feval
Undefined function or method 'mexcdf60' for input arguments of type 'char'.
What should I do to resolve the above error?
I am totally new to this type of data and mex-files. Please, help.
21 Oct 2008
30 Sep 2008
I really need this function, I hope it's helpful..
10 Sep 2008
works beautifully. Thank you so much. This is a great help for us matlab users trying to work with large climate datasets.
27 Jul 2008
I am extreamly thank you
03 Jun 2008
17 May 2008
great, but how to visualize climate data on a map ?
06 May 2008
08 Apr 2008
29 Jan 2008
Thanks a lot. Exactly what I needed.
21 Jan 2008
23 Nov 2007
Wow! I cant believe it...even people's comments until i saved this file into my working dir and used it in place of load on matlab prompt...my file is there!
Thats a great job!
Will it be possible for you to extend this for ARGO data, and possibly how to make some few plots? This would have added extreme help to many people! Pls reply me....
I am PhD student at National Oceanography Centre, Southampton, UK.
Hope to hear from you!
22 Oct 2007
Very Easy to use and quick, at least for smaller NetCDF files
22 Jun 2007
It's by far the simplest way that I found to read netcdf data in Matlab R14.
11 Jun 2007
04 Jun 2007
This is a nice complement to some of the more powerful netcdf libraries available. Becuase it reads in an entire file at once, it can only deal with small .nc files, but is much less hassle than the mexnc library I usually use. However, it would be nice if it did some checks ahead of time to see if the file it's reading is too big to be read into Matlab all at once (based on the header data), and errored out immediately, rather trying to do the impossible.