www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReadDataFromHDFEOSGridFieldExample.m
%% Read Data from HDF-EOS Grid Field %% % Read data from the HDF-EOS global grid field, |TbOceanRain|, in the example file, |example.hdf|. % Copyright 2015 The MathWorks, Inc. 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]});