构造地理栅格参考对象
使用georefcells
函数或georefpostings
函数,除非从世界文件矩阵构造光栅引用对象。
R = georasterref (W, rasterSize)
R = georasterref (W rasterSize rasterInterpretation)
R = georasterref(名称、值)
使用指定的世界文件矩阵为地理坐标中的常规单元格光栅创建参考对象R
= georasterref (W
,rasterSize
)W
和光栅大小rasterSize
.
,在那里R
= georasterref (W
,rasterSize
,rasterInterpretation
)rasterInterpretation
是“帖子”
,指定栅格包含在地理坐标中定期发布的样本。的默认值rasterInterpretation
是“细胞”
,它指定单元格的规则栅格。
为全局栅格构造一个引用对象,该栅格由180 × 360的单度单元格组成,行从经度-180开始,且第一个单元格位于西北角。
R = georasterref('RasterSize',[180 360],…'RasterInterpretation', 'cells', 'ColumnsStartFrom', 'north',…'LatitudeLimits', [-90 90], ' longitude elimits ', [-180 180])
为包含Sagarmatha(珠穆朗玛峰)的DTED Level 0文件构造一个引用对象。DTED列从南到北运行,第一列沿着(1度乘1度)四边形的西边缘运行,与的默认值一致“ColumnsStartFrom”
和“RowsStartFrom”
.
R = georasterref('LatitudeLimits',[27 28],' longitude elimits ',[86 87],…'RasterSize', [121 121], 'RasterInterpretation', '贴子')
使用不同的策略重复第二个示例:通过只指定RasterInterpretation
值,然后通过重置其他属性来修改对象。(如上所述,RasterInterpretation
不能更改现有光栅参考对象的。)
R = georasterref(“RasterInterpretation”、“帖子”);R.RasterSize = [121 121];R.LatitudeLimits = [27 28];r . longitude elimits = [86 87];
使用世界文件矩阵作为输入重复第一个示例。
W = [1 0 -179.5;...0 1 89.5);rasterSize = [180 360];rasterInterpretation =“细胞”;R = georasterref(W, rasterSize, rasterInterpretation);