Tuesday, February 23, 2016

Matlab+GDAL: HDF-EOS Translation

(1) HDF-EOS Introduction

HDF is the prescribed format for standard data products that are derived from EOS missions. HDF-EOS (Hierarchical Data Format - Earth Observing System) is a self-describing file format for transfer of various types of data between different machines based upon HDF. HDF-EOS is a standard format to store data collected from EOS satellites: Terra, Aqua and Aura. Two versions of HDF-EOS libraries: HDF-EOS2 based on HDF4 and HDF-EOS5 based on HDF5 are developed.

(2) GeoTIFF Introduction

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file. The potential additional information includes map projection, coordinate systems, ellipsoids, datums, and everything else necessary to establish the exact spatial reference for the file. The GeoTIFF format is fully compliant with TIFF 6.0, so software incapable of reading and interpreting the specialized metadata will still be able to open a GeoTIFF format file.

H4

代码按照关键字(keywds)选择性转换输出影像文件。这里输出NDVI和EVI文件。 H4ToGeoTiff.rar.

H5

出现问题:ERROR 4: Unable to open EPSG support file gcs.csv.
Try setting the GDAL_DATA environment variable to point to the
directory containing EPSG csv files.
Failed to process SRS definition: EPSG:4326,它的解决方法
H5文件因其自定义特征导致各类H5文件难以共用同一解决方案,需要结合数据说明加以判定。这里找到PROBA-V官方开发的Matlab代码,以作演示说明,供参考。 附PROBA-V产品说明文档
[2019.02.07] 面向PROBA-V的H5文件提取软件,附件。每次按照关键词输出,软件运行需要使用gcs.csv文件,可能首次运行返回错误找不到gcs.csv,需在系统变量新增“GDAL_DATA”,将该文件的路径作为变量值,注意重启CMD和MATLAB。输出各类影像需注意查看数据描述,注意scale_factor(伸缩因子)才能得到最终的结果,如NDVI还有_add_offset更需多加留意。Real=DN*a+b.

References

[1] HDF-EOS Tools and Information Center. This site is dedicated to information about HDF-EOS and about tools available to view or work with HDF-EOS and other NASA HDF files. Programming (C, Fortran, IDL® and MATLAB®) and tool examples to access HDF-EOS and other NASA HDF files are also available. It also hosts an archive of presentations made at an annual HDF/HDF-EOS workshop.
[3] HDF Group.

No comments:

Post a Comment