python 大气校正_PIE二次开发——大气校正

该博客介绍了使用Python进行大气校正的过程,特别是基于PIE的二次开发。通过窗体设计,用户可以选择输入和输出文件,设置大气模式、气溶胶类型等参数,并执行大气校正算法。博客详细展示了代码实现,包括文件选择、参数配置和算法执行等关键步骤。
摘要由CSDN通过智能技术生成

窗体设计:

代码:

private void button_src_Click(object sender, EventArgs e)

{

OpenFileDialog openFile = new OpenFileDialog();

openFile.Title = "请选择待校正影像";

openFile.Multiselect = false;

if (openFile.ShowDialog() != DialogResult.OK) return;

if (m_SrcLayer != null) mapControl_src.FocusMap.DeleteLayer(m_SrcLayer);

m_SrcLayer = LayerFactory.CreateDefaultLayer(openFile.FileName);

if (m_SrcLayer == null) return;

//添加图层

mapControl_src.FocusMap.AddLayer(m_SrcLayer);

mapControl_src.ActiveView.PartialRefresh(ViewDrawPhaseType.ViewAll);

textBox_srcImg.Text = openFile.FileName;

}

private void button_dst_Click(object sender, EventArgs e)

{

SaveFileDialog saveFile = new SaveFileDialog();

saveFile.Filter = "栅格影像|*.tiff;*.tif";

if (saveFile.ShowDialog() != DialogResult.OK) return;

textBox_dst.Text = saveFile.FileName;

}

private void button_run_Click(object sender, EventArgs e)

{

//string inFile = textBox_srcImg.Text;

//string outFile = textBox_dst.Text;

///

///大气校正算法测试,本算法实现了将GF1_PMS1_E116.5_N39.4_20131127_L1A0000117600-MSS1.tiff进行大气校正

///大气模式为系统自动选择大气模式,气溶胶类型为大陆性气溶胶,初始能见度为40km,逐项元反演气溶胶为是

///

#region 1、参数设置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值