%% Read Data from HDF-EOS Grid Field
% Read data from the HDF-EOS global grid field, TbOceanRain, in the example file, example.hdf.

data1 = hdfread('example.hdf','MonthlyRain','Fields','TbOceanRain');

%
% Read data for the northern hemisphere for the same field. Use the Box parameter to specify the longitude and latitude coordinates for that region.

data2 = hdfread('example.hdf','MonthlyRain', ...
'Fields','TbOceanRain', ...
'Box', {[0 360],[0 90]});

% Copyright 2015 The MathWorks, Inc.