Calendar
页面载入中....
Placard
页面载入中....
Category
页面载入中....
Latest Entries
页面载入中....
Latest Comments
页面载入中....
Last Messages
页面载入中....
User Login
页面载入中....
Links
Information
页面载入中....
Search
Other


Welcome to my blog!
  SRTM格式转换为GRID格式的快捷方法 
 

SRTM存储的格式通常的GIS/RS软件无法打开(ENVI除外),所以要使用SRTM数据分析,通常要进行格式转换。网上搜索了一下,有一个英文帮助文件,提示要更改扩展名为.bsq然后增加头文件(见参考2),相对比较烦琐。好在有一个免费软件3DEM(现在版本是193),自己摸索了一下没想到真找到了一个转换SRTM为ARCGIS Grid文件的简单方法。呵呵。
1.首先利用3DEM软件打开所需要转换的数据;
2.利用3DEM文件菜单的Save GeoTiff DEM将文件转换为TIF格式。(注意使用该命令会有个提示,选确定)
3.这时候的TIF文件ArcGIS和ENVI都能打开,但是ArcGIS打开是一片黑,ENVI打开是正常显示(不知道为什么,但是高程信息没有丢)
4.ENVI打开2步生成的TIF文件。然后利用File菜单将其转换为Arcgis 的grid格式。记住要用ENVI主菜单的Save Image as而不是Display窗口的ave Image as
5.OK

参考1:
SRTM数据主要是由美国太空总署(NASA)和国防部国家测绘局(NIMA)联合测量的,SRTM的全称是Shuttle Radar Topography Mission,即航天飞机雷达地形测绘使命,2000年2月11日上午11时44分,美国“奋进”号航天飞机在佛罗里达州卡那维拉尔角的航天发射中心发射升空,“奋进”号上搭载的SRTM系统共计进行了222小时23分钟的数据采集工作,获取北纬60度至南纬56度之间,面积超过1.19亿平方公里的9.8万亿字节的雷达影像数据,覆盖全球陆地表面的80%以上,该计划共耗资3.64亿美元,获取的雷达影像数据经过两年多的处理,制成了数字地形高程模型,该测量数据覆盖中国全境。
   SRTM数据每经纬度方格提供一个文件,精度有1 arc-second和3 arc-seconds两种,称作SRTM1和SRTM3,或者称作30M和90M数据,SRTM1的文件里面包含3601*3601个采样点的高度数据,SRTM3的文件里面包含1201*1201个采样点的高度数据。目前能够免费获取中国境内的RTM3文件,是90米的数据,每个90米的数据点是由9个30米的数据点算术平均得来的。
   SRTM数据下载的地址是:[url]ftp://edcsgs9.cr.usgs.gov/pub/data/srtm/[/url](乱码注:现在转移到了新的站点[url]ftp://e0mss21u.ecs.nasa.gov/srtm/[/url])。我国境内的数据在Eurasia目录下,每经纬度方格一个文件,文件命名方法是X1X2X3X4.hgt.zip,X1是N或S表示南北,X2是下方纬度数,X3是E或W表示东西,X4是左方经度数。

参考2:

Header file instructions for BIL raster data 
(SRTM, GTOPO30)

 
 

Note that this page is meant to complement the global DEM coverage webpage on this website, see that page first.

DEM data like SRTM and Gtopo30 is delivered in Band-Interleaved by Line (BIL) format. Many software packages can read BIL format and can georeference it correctly if a header file (.HDR) is available with the file. 

Below are instructions for manually creating a header file for SRTM DEM data.

Note, the free program 3DEM v169 can export  SRTM (.hgt) and save them as georeferenced GeoTIFF DEM files, avoiding this step. However, currently 3DEM cannot batch-process files. 

Converting them manually in Windows is described below. The contents will be in .HGT format. GIS software like ArcGIS can import .HGT files if they are renamed to be .BIL files and a header file is created. 

1. Unzip the .ZIP or .GZ files using Winzip. With GTOPO30 data it is important to  make sure "TAR file Smart Conversion" in Winzip is unchecked under

Options -> Configuration -> Misc 

2. Gtopo30 data usually has a HDR file. SRTM data does not. With SRTM rename the .HGT file to .BIL.

Create a .hdr file for the file using a text editor like Notepad. Examples follow.

Example for N18W077.bil should be named N18W077.hdr

BYTEORDER M
LAYOUT BIL
NROWS 1201
NCOLS 1201
NBANDS 1
NBITS 16
BANDROWBYTES 2402
TOTALROWBYTES 2402
BANDGAPBYTES 0
NODATA -32768
ULXMAP -76.9995833333     <- WYYY - 0.0004166667
ULYMAP 19.00041666666667    <- NXX + 1.0004166667
XDIM 0.000833333333333
YDIM 0.000833333333333

(Note: don't include the <- XXXXXX part!)
In ArcCatalog browse this directory. You should see the .BIL file. You must convert this file to GRID to use it for analysis. In ArcCatalog browser right- click on the filename and go down to Export to a Different Format... , this is the way to Export to GRID.

INITIAL PROCESSING

Some initial processing is required to prepare the data for use. First, it must be projected. Next, if you're on a computer with an Intel CPU (most PCs) you need to reverse the Byte-order, finally, if you set the values under -9999 to NULL then the empty cells will have NODATA values.

Projection / Coordinate System in ArcGIS:

  • ArcCatalog or ArcToolbox can be used to Define Projections for GRID files. To use ArcCatalog, right-click to get the Properties for a GRID file. Next click the "Spatial Reference tab", and click "Edit..." to redefine the projection/coordinate system. 
  • The VBA MacroBatchRasterSpatialRef will automate this process in ArcCatalog. Also, the subsequent steps can be automated for large number of tiles by using Excel to create an AML script as shown in this sample Excel file, and explained on this webpage.
  • Three dialog boxes follow, select the following:

Projection: GEOGRAPHIC
Geographic Units:
DD (decimal degrees)
Datum: WGS84
No offset

  • Open the GRID in ArcMap with Spatial Analyst extension turned on.
  • If you're on an Intel computer you must reverse the Byte order, Macs and UNIX workstations on Motorola CPU machines don't have to do this step. In Spatial Analyst Raster Calculator apply the following GRID command, substituting your file name for 'in_grid': 

out_grid = con ( [in_grid] >= 32768 , [in_grid] - 65536 , [in_grid])

  • Finally, in Raster calculator apply this command.

setnull ( [out_grid] < -9998 , [out_grid] )

  • Save the resulting "CALC" raster to a real GRID file with the "Make Permanent..." command.

More information is available on converting these files in Workstation GRID using IMAGEGRID and a related AML script.

This page is meant to complement the global DEM coverage webpage on this website.


[ 阅读全文 | 回复(1) | 引用通告 | 编辑

  Post  by  gisboy 发表于 2007-1-12 23:11:00
  • 标签:SRTM GRID 3DEM TIF 
  •   Re:SRTM格式转换为GRID格式的快捷方法
      gissky3DEM软件,好像ENVI软件也可以打开SRTM 数据。
    以下为blog主人的回复:
    ENVI可以打开,但是使用3DEM好处在于,可以一次导入多个SRTM。然后批量另存位其他格式。
    [ 个人主页 | 引用 | 返回 | 删除 | 回复

      Post  by  gissky发表评论于2007-1-14 20:08:00
    发表评论:
    页面载入中....
    页面载入中....
    Powered by Oblog.