GLT C1

Graphs template language:GLT,CAN DEFINE THE STRUCTURE OF THE GRAPH. WHAT KIND OF GRAPH OD YOU WANT:

TWO STEP:ONE.USING proc template define the structure of graph: when the template is successfully compiled,the following note is written to the log: NOTE: STATGRAPH 'template-name' has been saved to: SASUSER.TEMPLAT

proc template;
define statgraph template-name;
begingraph / <options>;
<gtl statements to define the graph>
endgraph;
end;
run;

TWO.

proc sgrender data=data-set-name template=template-name;
<other optional statements>
run;

A example:

proc template;
define statgraph histogram; 
begingraph;
entrytitle 'graph one';
layout overlay;
histogram cholesterol;
endlayout;
endgraph;
end;
run;

proc sgrender data=sashelp.heart template=histogram;
run;


output:

explanation: 1.define statgraph histogram. It defines the name of graph template which will be linked in proc sgrender.

2.begingraph-endgraph this code block includes all GTL code.

3. entrytitle can help to add a title.

4. Just on cell in this graph. Because use layout ovarlay-endlayout.

5.this cell can create a histogram which contains a variable 'Cholesterol'.

 

And the key GTL COMPONENTS:

1. PLOTS: WHICH TYPE OF GRAPH? HISTOGRAM? BOX-PLOT?.....

2. LAYOUT: HOW MANY CELLS DO YOU WANT TO DISPLAY?

3.TITLES, FOOTNOTE.AND ENTIRES.

4.AXES.

5.LEGENDS.

6.ATTRIBUTE MAPS.

7.GYNAMIC VARIABLE AND MACRO VARIABLE.

8.EXPRESSINS AND CODITIONAL STATMENTS.

9.STYLES AND PLOT ATTRIBUTES.

10.GRAPH.

11.IN-LINE DRAW.

12.ANNOTATIONS.

THE END!!!

 

 

### GLT校正在图像处理或遥感中的应用及实现方法 #### 定义与作用 地理查找表(Geographic Lookup Table, GLT)用于描述输入影像像元到输出影像像元之间的映射关系。这种映射可以纠正由于传感器姿态变化、地形起伏等因素造成的几何畸变,从而提高影像的空间精度和一致性[^1]。 #### 应用场景 GLT校正广泛应用于多源遥感数据融合、时间序列分析以及不同分辨率影像配准等领域。通过构建精确的GLT文件,可以在保持原始光谱特性的前提下完成高质量的几何精校正工作。 #### 实现步骤概述 在ENVI环境中执行GLT校正主要包括以下几个方面: - **准备基础资料** - 获取待校正的目标区域高程模型DEM; - 收集卫星过境时刻的姿态参数等辅助信息; - **创建GLT文件** 使用专门工具或脚本生成适用于特定任务需求的GLT表格。此过程涉及计算每个像素对应的地面坐标,并记录于文本文件中以便后续调用。 - **加载并配置环境** 打开ENVI软件,在菜单栏选择`File -> Import External File...`导入之前制作好的GLT文档作为外部参照依据之一。 - **实施重投影变换** 利用内置功能模块对原图施加基于上述GLT定义的新空间位置调整方案,最终得到经过严格几何定标的成果产品。 ```python import envi # 假设已存在名为 'glt.txt' 的GLT文件路径变量 glt_path 和 输入影像路径 input_image_path envi.reproject_image(input_image_path=input_image_path, output_image_path='output_corrected.img', geographic_lookup_table=glt_path) ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值