1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

njtbx logo

Note: njTBX is no longer being actively developed. The functionality of njTBX has been incorporated into NCTOOLBOX <http://code.google.com/p/nctoolbox/> which is under active development. Please migrate to NCTOOLBOX if you are using Matlab 2008a+ or later (earlier versions of Matlab will not work with NCTOOLBOX).

The NetCDF-Java toolbox (njTBX) was developed to make it easy for Matlab users to harness the power of the Netcdf-Java Library from Unidata.

njTBX does much more than read NetCDF files. By implementing a Common Data Model (a generalization of the NetCDF, OpenDAP and HDF5 data models) it can read both local and remote NetCDF-3 and NetCDF-4 files, data from OPeNDAP and ADDE servers, as well as GRIB, GRIB2, HDF4, HDF5, BUFR, URF and TDWR files. It can also read “virtual datasets” constructed using the NetCDF Markup Language. Thus njTBX complements and extends both the older ncmex-based toolkits as well as the newer Matlab 2008b+ built-in toolbox for NetCDF.

NetCDF-Java also has specialized high level methods for data that can be understood as belonging to a specific “Scientific Feature Type”, such as “grid”, “radial”, “trajectory” and “point” data. These high level methods can be used, for example, to return geospatial coordinate data (lon, lat, z and time) from “grid data” (uniform, rectilinear, or curvilinear horizontal coordinates, and fixed level or terrain-following vertical coordinates), which allows access to a variety of local and remote bathymetry, remote sensing, atmospheric and oceanic modeling results.

njTBX uses only Java and M-files, thus should work on any version of Matlab that supports Java (Matlab 6.5 and later) and on any platform. The library is freely available and the source code is released under the (MIT-style) njTBX library license.

For more information:


  • Dr. Richard P. Signell, USGS Woods Hole. rsignell[At]usgs.gov
  • Sachin Kumar Bhate. skbhate[At]gmail.com