Sunday, July 17, 2016

Matlab: 统计面积

Introduction

以地理编码统计图上类型的面积,结果是平方公里km2
XLS的sheet名称表示大类,内容是大类包含子类型的编码,其结果就是按照大类输出表示。按照需求调整sheet名称及地理编码即可得到所需类型的面积。
Fig. 1

Sunday, July 10, 2016

Matlab: Enhanded Embedded Images

Introduction

图片上再镶嵌图片的加强版。

Code Specification

1
2
3
4
5
6
propset.edgecolor=[255, 255, 255];
propset.edgepixs=5;
propset.scale4img=0.8;
propset.xscale=0.01; % scale of the background width
propset.yscale=0.01; % scale of the background height
propset.col=2;
从上至下依次指定:边框颜色、边框宽度(像元)、镶嵌图片的缩放比例、镶嵌位置X和Y(注意设置,若该位置镶嵌图片大于背景图片范围,程序出错)、指定镶嵌列数。 镶嵌示例如Fig. 1。

Tuesday, July 5, 2016

Matlab: Graphical User Interface

Introduction

GUIs (also known as graphical user interfaces or UIs) provide point-and-click control of software applications, eliminating the need to learn a language or type commands in order to run the application.免去学习新语言的时间、精力成本。
GUI外在是人机交互界面,内里是执行代码。
M2015有两种启动GUI的方法,第一种是在Command Window中输入guide回车;第二种是依次Home->New->Graphical User Interface。
简单小示例,初学者起步例子(Creating a GUI with GUIDE),附件
打开上次保存的GUI文件方法:在Command Window中键入guide回车,在新弹窗中做如Fig. 1选择,找到已有的GUI文件打开之。或者键入形式guide simple_gui。
Fig. 1

App Designer

GUIDE(GUI Development Environment)指GUI开发环境,可交互,控件所见即所得。App Designer比之于GUIDE更加强大,2016a及其之后的版本包含它。

References

Wednesday, June 29, 2016

Data: FROM-GLC

Introduction

Global land cover data are key sources of information for understanding the complex interactions between human activities and global change. FROM-GLC (Finer Resolution Observation and Monitoring of Global Land Cover) is the first 30 m resolution global land cover maps produced using Landsat Thematic Mapper (TM) and Enhanced Thematic Mapper Plus (ETM+) data. Our long-term goal in FROM-GLC is to develop a multiple stage approach to mapping global land cover so that the results can better meet the needs of land process modeling and can be easily cross-walked to existing global land cover classification schemes.

Data

下载数据有一点问题,投影信息不正确,坐标信息是正确的。这里可以用MODIS数据投影做一补充。
附件里包含演示数据,下面是一般过程。
打开一个空白的Arcmap文件,里面不包含任何空间信息。依次添加数据h4.tif,再是FROM-GLC_30mTile_h27v05_50km_Majority.tif,再加入Code/ne_10m_admin_0_countries.shp,注意这里顺序不能变化,h4文件必须是第一个加进来的文件,初始化Arcmap空间投影设定,矢量文件用来验证FROM-GLC_30mTile_h27v05_50km_Majority.tif文件位置是否准确。
按照上面的顺序,结果如Fig. 1。
Fig. 1
这个顺序安排的目的在于给FROM-GLC_30mTile_h27v05_50km_Majority.tif补上缺失的投影信息,它本身只剩下坐标信息是正确的。
再讲讲FROM-GLC_30mTile_h27v05_50km_Majority.tif文件的正确输出,右键文件选择Data—>Export Data,注意窗口上选择Data Frame (Current),输出为有正确投影信息及坐标信息的文件。
Fig. 2

References

Saturday, June 18, 2016

Data: Global DEM Data

Introduction

全球范围的DEM数据介绍。

GMTED2010

GMTED2010(Global Multi-resolution Terrain Elevation Data). These data have been collected from a variety of sources using aggregation methods. These datasets are best used for working at the continental scale and with very large regions. 7.5 Arc Sec (225m), 15 Arc Sec (450m), and 30 Arc Sec (1km).数据源主要来自SRTM,占比接近70%。

SRTM

SRTM(Shuttle Radar Topography Mission). 数据在2000年采样。第一版是90m空间分辨率,第二版是30m分辨率。 Downlink: http://viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm

ASTER GDEM2

数据是30m空间分辨率。采样时间似乎是2000年。

AW3D30

AW3D30(ALOS World 3D - 30m). 数据是30m空间分辨率。

ALOS DEM[updated 2020-11-14]

数据是12.5米,一个下载的介绍,这是一个视频

GEBCO (450m)[updated 2025-04-26]

References