Clear Filters
Clear Filters

reading NETCDF parameter information using getnc

1 view (last 30 days)
I'm trying to read in a large dataset that has been converted into NETCDF format from a proprietary binary format, a cut down version of the code is below.
yearstr = sprintf('%04d%02d', iyear, imonth);
cmet = 'pptn';
filenames = strcat(pathin , cmet , '-', yearstr, '01-30.nc')
file = filenames;
TIME = getnc(file, 't');
However, I keep coming up against a problem when it comes to ingesting the data, I get an error that states that;
Output argument "varargout" (and maybe others) not assigned during call to
"C:\My_Documents\2-routines\CSIRO NetCDF
routines\mexnc.m>mexnc".
I've tried reading through a lot of the information that I have, but I have been presented this routine by my supervisor and it appears to be a bit above my understanding. Any advice would be greatly appreciated because I'm temporarily stumped. I'm using R2010b on a windows 64 machine.

Accepted Answer

Gordon Jones
Gordon Jones on 14 Apr 2011
In a similar manner to my other question regarding NETCDF this problem has been solved by using SNCTOOLS rather than the CSIRO tools. It seems to provide a slightly more polished solution when using R2010b.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!