modis数据介绍_MODIS数据处理工具HEG安装教程

MODIS数据在遥感领域广泛使用,对于新手而言,其特有的坐标系让人摸不着头脑。当新手好不容易理解了坐标系,并使用简单的仿射变换矩阵做了投影转换,却发现投影转换后的tif影像不够精确,进一步使用数据时就会受到影响。

好在NASA官方提供的HEG(HDF-EOS To GeoTIFF Conversion Tool)工具,方便用户对HDF-EOS对象重定格式、重新投影和执行拼接/拼接和裁剪操作。它还可以重定格式和重新投影一些SMAP、VIIRS和SRTM产品。加上其直观的操作界面(虽然很丑),或者简单的命令行模式,为新手带来福音。

HEG是MRT工具的替代版本,其运行流程具有很大的相似性,对于熟悉MRT工具的老手们,很容易转换到HEG。

每个人对数据的处理需求都有差别,今天先整理分享HEG安装方法。

  1. 下载软件包。HEG的官方网站已迁移至新的位置HEG官方网站,感兴趣的可以看管网介绍内容,如果没兴趣也不要紧,点击Download,进入下载界面。官方提供了Windows、Linux、MacOS三种操作系统的适配版本,以及用户说明书,选择自己适合的版本下载即可,我使用的是Linux版本,就下载hegLNX64v2.15.Build9.8.tar.gz。

aac831f754779e645e186e12498d890a.png

76af3b1167dbe790ab1aca6fcc700394.png

近期重新安装的时候,发现官网上无法正常下载,最后是留学在外的朋友帮忙下载的,现在分享给大家,含Linux和Windows版本的软件以及用户手册。HEG软件网盘链接如下:

链接:https://pan.baidu.com/s/1FSabBoSTKRwIXxMMe5ol7A

提取码:j9xp

2. 安装之前,需要检查系统的java环境是否满足,一般都会有自带的,如果没有,需要自行安装java环境。

#查看java版本
java -version 

linux系统安装java环境,参考:

万猫学社:详解在Linux系统中安装JDK​zhuanlan.zhihu.com

3. 然后解压安装包,会生成heg.tar和install两个文件。接着输入./install,运行安装程序;

tar -xzvf hegLNX64v2.15.Build9.8.tar.gz

./install

4485e1430647c3f6d8ee820a2cad11ff.png

3. 安装过程中,根据提示,需要指定安装位置和java位置,最后随便输入一个用户名即可大功告成。

	HDF-EOS To GeoTIFF Conversion Tool (HEG) Installation
	----------------------------------------------------------
	
	To install the HEG Tool:
	
	1. The heg.tar file must be present in the current directory.
	2. You must know the directory path where the HEG is to be installed.
	3. You must know the path to the Java bin directory on your system.
	
	Do you wish to proceed with the HEG v2.15 Build 9.8 installation? [y/n]
	y
	
	Where would you like to install HEG?
	
	  IMPORTANT NOTE:
	  Be sure to give an absolute directory path, without special characters.
	     For example: /home/faculty/jsmith/heg
	
	  To install HEG in a subdirectory of the current directory, just press the ENTER key.
	
	  Enter the HEG directory path:
	
	Directory does not exist. Create /software/heg? [y/n]
	y
	 .....Making directory /software/heg
	 .....Moving heg.tar to /software/heg
	 .....Untarring heg.tar
	
	README
	bin/HEG
	bin/HEG.jar
	bin/gdtif
	bin/hegtool
	bin/resample
	bin/subset_stitch_grid
	bin/subset_stitch_swath
	bin/swtif
	bin/subsample_grid
	bin/locatemodistile
	bin/HEConvert
	bin/ncconvert
	data/conus.las
	data/conus.los
	data/counties.IDX
	data/counties.txt
	data/datum.txt
	data/File_Sinusoidal_projection_SW.pdf
	data/Geoggrid_world.jpg
	data/MCF_file
	data/nad27sp
	data/nad27sp_be
	data/nad27sp_le
	data/nad83sp
	data/nad83sp_be
	data/nad83sp_le
	data/sinusoid_world.jpg
	data/spc.IDX
	data/spc.txt
	data/spheroid.txt
	data/states.IDX
	data/states.txt
	data/User_Strebe_WikimediaCommons.pdf
	TOOLKIT_MTD/bin/
	TOOLKIT_MTD/bin/winnt98/
	TOOLKIT_MTD/bin/winnt98/pgs-dev-env.ksh
	TOOLKIT_MTD/database/
	TOOLKIT_MTD/database/common/
	TOOLKIT_MTD/database/common/TD/
	TOOLKIT_MTD/database/common/TD/leapsec.dat
	TOOLKIT_MTD/database/common/CSC/
	TOOLKIT_MTD/database/common/CSC/earthfigure.dat
	TOOLKIT_MTD/database/common/CSC/utcpole.dat
	TOOLKIT_MTD/database/common/EPH/
	TOOLKIT_MTD/database/common/EPH/sc_tags.dat
	TOOLKIT_MTD/database/common/CUC/
	TOOLKIT_MTD/database/common/CUC/udunits.dat
	TOOLKIT_MTD/database/common/CBP/
	TOOLKIT_MTD/database/common/CBP/de200.eos
	TOOLKIT_MTD/include/
	TOOLKIT_MTD/include/PGS_tk.h
	TOOLKIT_MTD/include/PGS_IO_L0_Wrap.h
	TOOLKIT_MTD/include/PGS_CUC.h
	TOOLKIT_MTD/include/makefile.CM
	TOOLKIT_MTD/include/PGS_PC.h
	TOOLKIT_MTD/include/PGS_AUX.h
	TOOLKIT_MTD/include/PGS_IO_Gen_Wrap.h
	TOOLKIT_MTD/include/PGS_PC.f
	TOOLKIT_MTD/include/PGS_EPH.h
	TOOLKIT_MTD/include/PGS_PC_Prototypes.h
	TOOLKIT_MTD/include/PGS_MEM1.h
	TOOLKIT_MTD/include/PGS_tk.f
	TOOLKIT_MTD/include/PGS_TDF.h
	TOOLKIT_MTD/include/PGS_math.h
	TOOLKIT_MTD/include/makefile.cpp
	TOOLKIT_MTD/include/PGS_TD_Prototypes.h
	TOOLKIT_MTD/include/CUC/
	TOOLKIT_MTD/include/CUC/utscan.h
	TOOLKIT_MTD/include/CUC/makefile.CM
	TOOLKIT_MTD/include/CUC/udunits_prototypes.h
	TOOLKIT_MTD/include/CUC/odlparse.h
	TOOLKIT_MTD/include/CUC/odldef_prototypes.h
	TOOLKIT_MTD/include/CUC/odldef.h
	TOOLKIT_MTD/include/CUC/udunits.h
	TOOLKIT_MTD/include/CUC/utprivate.h
	TOOLKIT_MTD/include/CUC/makefile.cpp
	TOOLKIT_MTD/include/CUC/odlinter.h
	TOOLKIT_MTD/include/CUC/makefile.CM.cpp
	TOOLKIT_MTD/include/CUC/udposix.h
	TOOLKIT_MTD/include/CUC/utparse.h
	TOOLKIT_MTD/include/CUC/udalloc.h
	TOOLKIT_MTD/include/makefile.CM.cpp
	TOOLKIT_MTD/include/cfortran.h
	TOOLKIT_MTD/include/PGS_MET.f
	TOOLKIT_MTD/include/PGS_IO.h
	TOOLKIT_MTD/include/PGS_TD.f
	TOOLKIT_MTD/include/PGS_IO.f
	TOOLKIT_MTD/include/PGS_MEM.h
	TOOLKIT_MTD/include/PGS_TYPES.h
	TOOLKIT_MTD/include/PGS_SMF.f
	TOOLKIT_MTD/include/PGS_TD.h
	TOOLKIT_MTD/include/PGS_IO_Gen.h
	TOOLKIT_MTD/include/PGS_IO_L0.h
	TOOLKIT_MTD/include/PGS_MET.h
	TOOLKIT_MTD/include/PGS_SMF.h
	TOOLKIT_MTD/include/PGS_CBP.h
	TOOLKIT_MTD/include/PGS_CSC.h
	TOOLKIT_MTD/include/tk_proto.h
	TOOLKIT_MTD/lib/
	TOOLKIT_MTD/lib/sgi32/
	TOOLKIT_MTD/lib/sgi32/libPGSTK.a
	TOOLKIT_MTD/lib/linux32/
	TOOLKIT_MTD/lib/linux32/libPGSTK.a
	TOOLKIT_MTD/lib/sun5/
	TOOLKIT_MTD/lib/sun5/libPGSTK.a
	TOOLKIT_MTD/lib/sun5.8/
	TOOLKIT_MTD/lib/sun5.8/libPGSTK.a
	TOOLKIT_MTD/lib/winnt98/
	TOOLKIT_MTD/lib/winnt98/libPGSTK.a
	TOOLKIT_MTD/runtime/
	TOOLKIT_MTD/runtime/configfile.dat
	TOOLKIT_MTD/src/
	TOOLKIT_MTD/src/PGS_MET_GetSetFileIdName.c
	TOOLKIT_MTD/src/PGS_MET_GetPCAttr.c
	bin/images/downarrow.gif
	bin/images/uparrow.gif
	bin/findoutputgridcorners
	bin/libjhdf5.so
	bin/libjhdf.so
	bin/HEG_Batch_Tool_Unix
	bin/sinusoid_world.jpg
	bin/Geoggrid_world.jpg
	bin/geotiff_to_netcdf
	
	 -- Untar executed successfully! --
	
	
	Where is your java bin directory located?
	
	  IMPORTANT NOTE:
	  Give an absolute path, without special characters.
	     For example: /usr/java/bin
	
	  Enter the path to your java bin directory: 
	/usr/bin
	
	 -- Found /usr/bin/java! -- 
	
	    .....Testing java version. 
	
	openjdk version "1.8.0_252"
	OpenJDK Runtime Environment (build 1.8.0_252-b09)
	OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
	
	 ***********************************************************************
	 * IMPORTANT! The Java version must be 64 bit and 1.8 or greater.      *
	 *                                                                     *
	 * If your Java version is less than 1.8, ask your sysadmin to install *
	 * the latest version of Java, and reinstall HEG. Also if your java is *
	 * 32-bit, the HEG GUI Field image viewing will fail.                  *
	 ***********************************************************************
	
	Please enter a username to be used internally by HEG, (e.g. BOB):
	user
	
	
	
	*****************************************************************
	*       Congratulations! You have successfully installed        *
	* HDF-EOS To GeoTIFF Conversion Tool (HEG) v2.15 Build 9.8 on your system! *
	*****************************************************************
	
	
	          To start HEG, type "HEG" at the command line in the        
	             following directory:                                      
                  /software/heg/bin/ 

4. 安装完成后,配置环境变量。除了给系统PATH添加HEG的bin目录之外,还需要配置MRTDATADIR、PGSHOME、MRTBINDIR三个目录,可参考下列我的例子。

export HEG_ROOT=/software/heg
export PATH=$HEG_ROOT/bin:$PATH
export PGSHOME=$HEG_ROOT/TOOLKIT_MTD
export MRTDATADIR=$HEG_ROOT/data
export MRTBINDIR=$HEG_ROOT/data

5. 运行,输入HEG,可以弹出界面,是不是很丑?不过其功能是很强大的,具体使用方法参考userguide了。

e4f60738229d4b2076e80e8cc9d3f850.png

比较粗糙的总结,纯属为了给自己作个笔记,同时与各位交流学习。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值