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

14 views (last 30 days)
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;

Answers (1)

Ankit Singh
Ankit Singh on 27 Jun 2019
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

Community Treasure Hunt

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

Start Hunting!