Professional Documents
Culture Documents
John Evans
john.evans@mathworks.com
2
Informal Interface (high level)
3
Formal Interface (low-level)
4
OPeNDAP with either interface
5
OPeNDAP in earlier versions of MATLAB…
>> javaaddpath('netcdfAll-4.2.jar');
>> import ucar.nc2.dods.*
>> jncid = NetcdfFile.open(url);
6
NetCDF Support
7
NetCDF Support (h5disp output)
HDF5 myfile.h5
Group '/'
Dataset 'myDataset1'
Size: 100x200
MaxSize: 100x200
Datatype: H5T_IEEE_F64LE (double)
ChunkSize: []
Filters: none
FillValue: 0.000000
8
NetCDF Support (ncdisp output)
Source:
myfile.h5
Format:
netcdf4
Dimensions:
phony_dim_0 = 200
phony_dim_1 = 100
Variables:
myDataset1
Size: 100x200
Dimensions: phony_dim_1,phony_dim_0
Datatype: double
9
NPP Access Example via HDF5 High Level
dereferenced_data =
[2457600x1 uint16]
[2457600x1 uint8 ]
[2457600x1 uint8 ]
[2457600x1 uint8 ]
[ 2x1 single]
11
References
1. http://www.mathworks.com
2. http://www.unidata.ucar.edu/software/netcdf-java
3. http://www.opendap.org
4. http://mexcdf.sourceforge.net (SNCTOOLS)
5. http://www.hdfgroup.org/ftp/HDF5/examples/examples-
by-api/api18-m.html (low level HDF5 API examples)
12