

#Read cdf files in matlab code
Secondly, it means that programs describe below can read a netCDF file and generate the code needed to read the file whether it be Fortran, C/C++, JAVA or PERL. This self-describing aspect of netCDF file format means that the information needed to ensure accurate work (reduce the incidence of errors) is available with the data itself.
#Read cdf files in matlab software
The most important of which is that it is a self-describing, meaning that software packages can directly read the data and determine its structure, the variables names and essential metadata such as the units.

Much of the WOCE Global Data Resource is now in netCDF format. This documentation preserves much of the original information in the data set reducing the chance of errors occurring during analysis.ġ.0 Why use netCDF for CD ROM 2.0 of WOCE Global Data set?

Because the netCDF files are self-describing, the attributes of each variable (such as units) and name are defined in the data set (along with other information such as the source, creation date, investigator, position, etc etc). This reduces the hurdles involved in reading all the different data sets and allows the analyst to concentrate on the interpretation of the observations from many different sources. Because netCDF format is now used for most of the different data products on the WOCE Global Data V2.0, the skills required to read one data set are the same as those needed to read all the others data sets. These tools allow the netCDF files to be read quickly and easily and to be manipulated by many common analysis packages in addition to traditional languages such as Fortran and C/C++ and Java. This document describes some simple tools that are available for the reading of netCDF files found in the WOCE Global Data set Vol. A first time primer for reading netcdf filesġ.0 Why use netCDF for CD ROM 2.0 of WOCE Global Data set? 2.0 Using FORTRAN to read neCDF filesĦ.0 Other methods and examining netCDF filesĪppendix 1: Readnet.for created from cdf2fortranĪppendix 2: Example matlab script for current meter data
