how to read and plot the HDF data from INSAT3D SST data

조회 수: 5 (최근 30일)
reddy
reddy 2015년 10월 6일
답변: Ankit Singh 2019년 6월 27일
hello every one,
I have INSAT3D SST satellite data. I am able to read the latitude, longitude and sst variables but i am unable to process it.
here is the mat-lab code.
figure
s1 = h5read('F:\3DIMG_01OCT2013_0000_L2B_SST.h5','/SST');
l1 = h5read('F:\3DIMG_01OCT2013_0000_L2B_SST.h5','/GeoX');
l2 = h5read('F:\3DIMG_01OCT2013_0000_L2B_SST.h5','/GeoY');
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
m_proj('Mercator','long',[20 140],'lat',[0 90]);
m_coast('patch',[.8 .7 .6],'edgecolor','none');
m_grid('tickdir','out','yaxislocation','left',...
'xaxislocation','top','xlabeldir','end','ticklen',.02);
hold on;
m_pcolor(l2,l1,s1');
shading interp;

답변 (1개)

Ankit Singh
Ankit Singh 2019년 6월 27일
h5disp('3DIMG_01JAN2016_0029_L2C_INS.h5')
info = h5info('3DIMG_01JAN2016_0029_L2C_INS.h5');
%% Group
group = info.Groups();
%% Datset
dataset= info.Datasets();
name= dataset.Name;
name1= dataset.Name.X;
%X= name.X;
att= dataset.Attributes;
dtype=dataset.Datatype;
dspace= dataset.Dataspace;
%% Attribute
attribute= info.Attributes();
attr_dspace= attribute.Dataspace;
%%
%data = h5read('3DIMG_01JAN2016_0029_L2C_INS.h5','/Datasets');
%% read from hdf view
ins = hdf5read('E:\Ankit Singh Work\1January2016 INSAT D\3DIMG_01JAN2016_0029_L2C_INS.h5','INS');
ins1= double(ins);
longi = hdf5read('E:\Ankit Singh Work\1January2016 INSAT D\3DIMG_01JAN2016_0029_L2C_INS.h5','X');
lati = hdf5read('E:\Ankit Singh Work\1January2016 INSAT D\3DIMG_01JAN2016_0029_L2C_INS.h5','Y');
pcolor(longi,lati, ins1');shading flat;
%% load coast;
plot(long,lat,'k')
hold on;
plot(ins1)
%% plot
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
%proj('Mercator','long',[20 140],'lat',[0 90]);
cast('patch',[.8 .7 .6],'edgecolor','none');
grid('tickdir','out','yaxislocation','left','xaxislocation','top','xlabeldir','end','ticklen',.02);
hold on
pcolor(long,lati,ins');
shading interp

카테고리

Help CenterFile Exchange에서 HDF5에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by