[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NetCDF4 in Matlab?



Jon, John & Co,

Either of the netcdf-java toolboxs can read NetCDF4.  I wouldn't say
either is "preferred" at this point.  NC toolbox is easier to install,
uses more modern features of Matlab and is much simpler coding.  NJ
toolbox has more functionality and works with older versions of
Matlab, but is more complex.

The native Matlab interface also supports both reading and writing of
NetCDF4, at least in Matlab 2010b.  Check out the m-file in the
attached .zip.


-Rich


On Fri, Dec 10, 2010 at 9:25 AM, John Caron <address@hidden> wrote:
> On 12/10/2010 8:57 AM, Jon Blower wrote:
>
> Hi Rich, John and Russ,
>
> We've had an enquiry here about whether Matlab can read NetCDF4 files (which
> I think means compressed data with the classic data model), either
> "natively" (presumably through the C libraries) or through the Matlab-Java
> interface.  Do you know if anyone has achieved this?
>
> Cheers, Jon
>
> matlab can use the java-netcdf4 library, which gives it access to all the
> CDM files, including netcdf4.
>
> there are 2 matlab toolkits:
>
> MATLAB toolkits
>
> njTBX (Rich Signell/USGS, Sachin Bhate/Mississippi State University)
> nctoolbox (Brian Schlining/MBARI)
>
> rich, which one is preferred?
>
>
>



-- 
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598

Attachment: native_matlab_netcdf4_test.zip
Description: Zip archive