如何提取lat-lon MOD10C2 hdf在matlab数据吗?- 江南体育网页版- - - - -地球科学堆江南电子竞技平台栈交换 最近30从www.hoelymoley.com 2023 - 07 - 10 - t12:33:40z //www.hoelymoley.com/feeds/question/16183 https://creativecommons.org/licenses/by-sa/4.0/rdf //www.hoelymoley.com/q/16183 1 如何提取lat-lon MOD10C2 hdf在matlab数据吗? 伊尔凡 //www.hoelymoley.com/users/12714 2019 - 02 - 06 - t09:53:53z 2019 - 02 - 06 - t15:53:34z < p >我们可以导入和阅读所有给定的乐队/参数MOD10C2,纬度和经度不是作为单独的乐队,而嵌入其他的乐队。我们如何从MOD10C2 hdf matlab中的数据。< / p > < p > < a href = " https://stackoverflow.com/questions/51557613/lat-lon-information-from-hdf-file-python " >类似的问题在这里找到python < / > < / p > //www.hoelymoley.com/questions/16183/how-to-extract-lat-lon-from-mod10c2-hdf-data-in-matlab/16184 # 16184 3 答案为如何从MOD10C2提取lat-lon Camilo Rada hdf在matlab数据吗? 卡米洛·Rada //www.hoelymoley.com/users/11908 2019 - 02 - 06 - t15:08:27z 2019 - 02 - 06 - t15:08:27z < p >经度和纬度的每个像素不是存储在HDF文件。但使用< / p > < p >元数据= hdfinfo (file_name.hdf); < / p > < p >你可以得到的信息来生成这些纬度和经度。在元数据。Attibutes你会发现这其中:< / p > < pre > <代码> GridName =“MOD_CMG_Snow_5km”XDim = 7200 YDim = 3600 UpperLeftPointMtrs = (-180000000.000000, 90000000.000000) LowerRightMtrs =(180000000.000000, -90000000.000000)投影= GCTP_GEO < /代码> < / pre > < p >如果你而更多的人类可读的格式,检查< a href = " https://nsidc.org/data/mod10c2 " rel = " nofollow noreferrer " >产品规格MOD10C2 < / >。< / p > < p >这说:< / p > < blockquote > < p > <强>投影< /强> < / p > < p > MODIS发生数据集产生的地理纬度/经度投影。这个简单的投影将地理经度和纬度度就像x - y坐标在一个平面上。图1显示了地理纬度/经度投影称为板Carree,情节经度和纬度度为x和y轴上的坐标,分别为:< / p > < p > < a href = " https://i.stack.imgur.com/FnIpR.png " rel = " nofollow noreferrer " > < img src = " https://i.stack.imgur.com/FnIpR.png " alt = "在这里输入图像描述" > < / > < / p > < p >图1:板Carree投影。< / p > < p > < >强电网< /强> < / p > < p > MODIS康联由7200列3600行。每个细胞都有一个分辨率为0.05度(约5公里)。左上角的左上角单元-180.00度经度,纬度90.00度。右下角单元格的右下角是-180.00度经度,纬度-90.00度……< / p > < /引用> < p >你有足够多的信息来生成纬度和经度向量。 Now you have to decide if you will store the center of each pixel, or one of the corners.

Assuming you will store the center of each pixel you can generate the latitude and longitude vectors like this:

gridSize=0.05 % arc degrees lat=-90+(gridSize/2):0.05:90-(gridSize/2); lon=-180+(gridSize/2):0.05:180-(gridSize/2); 

And if you want instead matrices with the coordinates of the center of each individual pixel, you do

[lonGrid,latGrid]=meshgrid(lon,lat);

Baidu
map