(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, ellipsoid s, 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. Convert a raster to geotiff from hdf-eos (H4) 操作 HDF-EOS ( H4 )数据转换为 GeoTiff 格式文件,目前 Python+GDAL (我的认识)只能以单波段的方式实现。转换前,文件的 Grid Name (应该只有一个)以及 Filed Name (可以多个)必须被指名,分别记录在 GridName.txt 和 keyword.txt 文件之中。若 Grid Name 和 Filed Name 还不明确, IDL 程序 hdfinfo.pro ( invoking hdf_sd_getnameandindex.pro )能够输出 HDF-EOS 文件的相关属性,再分别填好 GridName.txt 和 keyword.txt 。 随后, Python+GDAL 程序实现 HDF-EOS ( H4 )文件输出 GeoTiff 文件操作。 Materials for Practice ( HDF2GTiff.rar ). Convert a raster to geotiff from hdf-eos (H5) 参考 Some tips on HDF5 files Materials for Practice H5 ( He5toGTiff.rar ). HDF-EOS Translation Outputs Comparision H4 : ArcGIS 、 ENVI 、 HDFView 和 GDAL 分别将 H4 文件其中之一波段转换为 GeoTIFF 文件,转换结果如图 1 所示, HDFView 与其他三种工具的转换结果在 Upper Left 坐标上有非常明显的差异,前者是 12 ° 27 ′ 12.97 ″ E,49 ° 59 ′ 45.00 ″ N ,后者是 12 ° 2 7 ′ 28.46 ″ E,49 ° 59 ′ 60.00 ″ N 。从图 2 知道,这两者坐标相差约 559 米 。 H4TIFFS.rar 图 1 图 2 H5 : HDFView 虽然可以将 H5 文件转换为 GeoTIFF ,但该数据没有成功。 ENVI 没有发现它的转换方法。那么,只有 ArcGIS 和 GDAL 的转换结果见图 3 ,两者差别很大,第一是图像的列( Column )行( Row )分别是 3931×1644 与 60×1644 ,第二是 Upper Left 坐标 28 ° 10 ′ 3.18 ″ W, 77 ° 24 ′ 51.08 ″ N 与 69 ° 9 ′ 22.10 ″ W, 68 ° 25 ′ 52.70 ″ S 。查询元数据( Metadata )可知。 H5TIFFS.rar 图 3 Discussion 针对这一不同坐标的问题,我去信咨询 NASA 专家 Wenli Yang ,他在回复中指出 H4 文件转换结果 GDAL 是正确的(基于 GDAL 的 ENVI 及 ArcGIS 同样是正确的), HDFView 转换结果错移半个像元,大约就是 559 m 。 H5 文件回复中指出该数据是推扫格式,即这类数据的经度和纬度本不是固定间隔,不符合 Geotiff 格式文件固定间隔的要求,也就不能转换为 Geotiff 文件( The data in the HDF file in Swath format, meaning the latitude and longitude values are not in a regular grid. Distances between pixels vary from place to place. ) 注意 :本例的 H5 数据不能转换为 Geotiff 文件,不代表其他 H5 数据就一定不能成功转换,依数据情况而定,但本例所应用的 H5 处理代码应该还是准确的。 Supplement Proba-V ( VITO ) 数据同时提供两种数据格式进行分发,分别是 GeoTIFF 和 HDF5 文件,在此 H5 文件逐像元对应坐标是等间隔分布,因此它可以被转换为 GeoTIFF 格式文件。 PROBAV.rar References 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. GeoTIFF, from Wikipedia, the free encyclopedia . HDF Group . convert from HDF to GeoTiff . COMPREHENSIVE EXAMPLES . Display HDF-EOS5 in ENVI . ArcGIS Open HDF-EOS5 . How to convert (SWI) HDF5 data to GeoTIFF ? H5 Source: Aura OMI Cloud Data Product-OMCLDO2 (Version 003) .
HDF-EOS plug-in for HDFView2.10.1 (with heconvert 4.0) is officially released on June 5, 2014. The release contains tar files for the supported platforms SUN (32-bit), LINUX (32, and 64-bit), MAC INTEL (64-bit) and WINDOWS (32, and 64-bit). See README_Install_Plug-in_2.10 for installation. The following files have been placed on the EDHS ftp site (ftp to edhs1.gsfc.nasa.gov then change directory to edhs) in: /HDFView/latest_release: HDFView2.10.1_HDF-EOS_Plugin_LNX32.tar.gz HDFView2.10.1_HDF-EOS_Plugin_LNX64.tar.gz HDFView2.10.1_HDF-EOS_Plugin_SUN32.tar.gz HDFView2.10.1_HDF-EOS_Plugin_MAC64.tar.gz HDFView2.10.1_HDF-EOS_Plugin_WIN32.zip HDFView2.10.1_HDF-EOS_Plugin_WIN64.zip These files are accessible from our anonymous ftp site edhs1.gsfc.nasa.gov ( use ftp://edhs1.gsfc.nasa.gov/edhs/HDFView/ ) or from HDFView Plug-in website links in http://newsroom.gsfc.nasa.gov/sdptoolkit/HDFView/HDFViewDownload.html For HDFView Plug-in please follow the README_Install_Plug-in_v2.10 file for installation. For Toolkit, HDF-EOS and related software please visit our web site http://newsroom.gsfc.nasa.gov/sdptoolkit/toolkit.html Here are summary of some new features in this new release: HDFView Plug-in: - Support ofWindows 64-bit Platform. - Support forsaving HDF-EOS2 grid images in geoTIFF format. - Support forsaving multi-band HDF-EOS2 grid images in multi-band geoTIFF format. - Time Conversion tools for spreadsheet elements from TAI93 to UTC and UTC to TAI93 - A few bugfixes for reading attributes. - improved heconvert usage with the following features: - Write vanilla HDF objects (objects created using vanilla HDF4 calls) in addition to the HDF-EOS objects (objects created using HDF-EOS2 calls) to the output. - Convert Dimension Scales when present. - Copy ECS's Inventory (core) and Archive metadata into the output - Write HDF written field and group attributes to the output fields and groups. Please report any problems or suggestions to mailto:PGSTLKIT@raytheon.com Warning: You have to modify some characters if the hdfviewer could not open successfully , following the steps—Open the file ‘hdfview.bat’, located in ~\2.11.0\bin, line 27 ‘set INSTALLDIR=D:/Tools/HDFVIEWER/2.11.0’, that is the directory you installed. Then, the program would be execute well. All configuration had been done, it would be open as figure 1 if HDF-EOS. 图 1 Materials for practice ( HDFEOSViewer.rar ).