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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…