Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
200 views
in Technique[技术] by (71.8m points)

How to retrieve temperature profile from MOD07_L2 product into MATLAB

I downloaded MOD07_L2 product data, these are .hdf files. In MATLAB, I am able to plot images of retrieved temperature profiles over an area for different pressure levels, but I want the numerical values of temperature. I tried adding offset and multiplying scale factor, still I got values which were out of the valid range(250-350k). Here is the code i wrote for getting temperature data:

file = hdfinfo('MOD07_L2.A2021010.0110.061.2021010131136.hdf');
dset1 = hdfread(file.Vgroup.Vgroup(2).SDS(15));
dset1 = permute(dset1,[2,3,1]);
d1 = dset1;
T = zeros(20,1);
for i = 1:1:20
   test = d1((d1(:,:,i)>0));
   test = ((test) - 15000)*0.01 - 273.15;
   T(i) = mean(mean(test));
end

And the following code yields the images for temperature profile for different pressure levels:

file = hdfinfo('india.hdf');
dset1 = hdfread(file.Vgroup.Vgroup(2).SDS(15));
dset1 = permute(dset1,[2,3,1]);
d1 = dset1;
for i=1:1:20
  subplot(1,2,i);
  imshow(dset1(:,:,i));
end

How can I get the values for temperature at different pressure levels from the mod07_L2 output product?

question from:https://stackoverflow.com/questions/65951421/how-to-retrieve-temperature-profile-from-mod07-l2-product-into-matlab

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...