HEG(HDF-EOS to GeoTIFF (HEG) Converter)安装及hdf文件转tif文件批处理
HEG下载地址:
https://ladsweb.modaps.eosdis.nasa.gov/
https://ladsweb.modaps.eosdis.nasa.gov/tools-and-services/
http://hdfeos.org/software/heg.php
下载Java
https://www.oracle.com/cn/java/
程序安装
1.安装Java(JDK1.8或JRE8或更新的Windows版本)。
2.解压hegWINv2.15.Build9.8.zip到当前目录。
3.双击上的install.bat,并按照MS - DOS窗口上的指令输入。
(1) 第一步:提示是否安装HEG,输入y,回车
(2) 第二步:提示输入HEG安装路径,以d:/heg为例,输入后回车
(3) 提示输入java的bin目录所在的路径,以c:/java/bin为例,输入后回车
(4) 提示输入用户名,不能跳过,必须输入(自定英文),否则安装完成后,会导致打开hdf文件失败。
注意事项:
1. Java安装路径尽可能不要有特殊字符如() - _等
2. Java 和HEG 安装时,安装路径名称中不能有空格。
3. HEG安装时,安装路径中的'\'用'/'替换。
4. 安装路径为英文路径无空格无特殊字符,同时路径要尽可能的浅短。eg. D:/heg
原英文安装说明如下:
Installation on Windows 7, 8, and 10 Download hegWINv2.15.zip file.
0. Place the zip file hegWINv2.15.zip in a directory that does NOT HAVE ANY SPACES in the directory pathname. HEG will be installed under this path tree.
1. Install java (jdk1.8 or jre8 or newer windows version).
2. Unzip hegWINv2.15.zip to the current directory.
3. Double click on install.bat and follow the instruction in MS-DOS window that appears.
4. A file HEGTool.bat will be created by the installation in HEG\HEG_Win\bin directory.
5. Go to this bin directory, where HEGTool.bat file is, and right click on HEGTool.bat. Click on the Create Shortcut. You can change the icon for this shortcut as in step 6.
6. Right click on the HEGTool.bat Shortcut. Click on the Properties and then click on the Change Icon. Now click on Browse and select the file "heg.ico" in the HEG_Win\bin directory
7. To run HEG Double click on the created shortcut(s) or the HEGTool.bat in the HEG_Win\bin directory.
Note: Sometimes after clicking on install.bat a MS-DOS window appears for a very short time and then disappears. If that is the case, then some error has caused it. To see what the error was and to correct the problem, first open MS-DOS Command Prompt window yourself. In that window change the directory to the one that HEG install.bat is. Type install.bat and push Enter. You may now see what the error is and take appropriate action to correct the problem.
Also if you succeed in installing HEG and creating HEGTool.bat you may get error during opening HEGTool.bat. If after clicking on HEGTool.bat the MS-DOS window appears for a very short time and then disappears, then you are having some kind of error in HEGTool.bat. To see what the error is and to correct it do the following:
1. Open MS-DOS Command Prompt window yourself. In that window change the directory to the one that HEG's bin directory is.
2. Type HEGTool.bat and press Return. You will get an error. Correct the problem (Which more likely is a path problem) and continue.
.hdf文件转.tif文件批处理
详情可参考说明文件:
EED2-TP-030_Rev01_HEG_UsersGuide_2.15.pdf 中的
节8. Batch Processing