|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
利用matlab画GLCC(GLOBAL LAND COVER CHARACTERIZATION)数据。
: ?4 S6 }0 r5 J* ~' c有两种version、两种投影方式。分别需要不同的matlab函数读取。 e% C6 ]) t7 h% u6 ^2 {- h
1、选择version和地区,下载数据。以2.0、欧亚地区、Lambert投影数据格式为例,下载USGS Land Use/Land Cover Scheme数据。
) w7 V' \7 p* h; k! ?# ~! B2、解压数据,得到eausgs2_0la.img
/ l- y* K& s+ I2 T3、matlab程序:
1 ?( ^+ k! q1 G* d5 Xclear;close all;clc
" |& @/ d4 u9 V! Q5 o Yfigure/ R8 i& G0 Z: }4 h) o" ?6 {+ y. b
worldmap china6 u7 t S& l2 f4 ~5 A1 N$ ^) Y/ ~
mstruct = gcm;
/ j- |2 ?& f$ \5 platlim = mstruct.maplatlimit;
8 b" N* k; W ]) Q9 f/ Plonlim = mstruct.maplonlimit;
6 @/ b8 O X' H0 @scalefactor = 2;0 b+ U) \1 w/ b3 U7 \+ j
[latgrat, longrat, Z] = avhrrlambert('a', 'eausgs2_0la.img', ...
( E2 Y3 A& }: C; d. d5 P. r8 h8 z scalefactor, latlim, lonlim);
8 g8 e. o/ n" Z' c9 J2 Kgeoshow(latgrat, longrat, Z, 'DisplayType', 'texturemap');
; Y# J8 p) J" f2 ~. n* L6 t; ugeoshow('landareas.shp','FaceColor','none','EdgeColor','black')
' X0 y; n1 a2 d$ {2 N! gload usgslulegend; colormap(cmap)
$ b/ f7 d6 ?4 }2 b, wset(handlem('suRFace'),'CDataMapping','Direct'); tightmap& J+ L8 f9 \) E7 y
caxis([.5 24.5]); hcb = colorbar;7 {4 V' K# ~% U) M- m3 Q
set(hcb,'YTick',1:24,'YTickLabel',USGSLandUse,...
4 B7 t9 e6 @! ~5 _% G# s3 d6 r 'Position',[.7 .1 .02 .8])
6 x0 U) o6 E" ]set(gca,'Position',[-.05 .1 .8 .8])
1 p% _5 U3 u1 c! o
. C+ p1 l3 O1 P' I- R3 [& V
6 D% Y3 C" d& Q6 H+ C+ v" b5 F
9 [! b" r) ~2 K- W0 x5 p4 `
+ G! b3 H/ R. n' [. n3 [: [
+ K8 f% e6 j/ C- z* J F# T: N7 H) W8 D4 V
4、主要用到的matlab函数为avhrrlambert(如果是Goode投影则用avhrrgoode函数)
8 _3 [2 K- X3 O0 z& q4 O8 w+ X' p T8 ~0 c/ j! r
|
|