예제 #1
0
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                UpdateTextDelegate updateProcess = delegate()
                {
                    try
                    {
                        this.textBoxResult.Clear();
                        StreamReader sr = new StreamReader(textBox1.Text, Encoding.Default);
                        String       line;
                        textBoxResult.AppendText("                             核驱动模型校正系数\r\n");
                        textBoxResult.AppendText("        系数fiso     系数fgeo     系数fvol\r\n");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("波段1    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("波段2    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("波段3    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("波段4    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        //textBoxResult.AppendText(File.ReadAllText(textBoxCorrectParams.Text));
                        textBoxResult.Select(0, 1);
                        textBoxResult.ScrollToCaret();
                        privilegeManager.AppendLog(this.Text, textBox1.Text);

                        //显示散点图,需要调用IDL的显示程序
                    }
                    catch (System.IO.FileNotFoundException)
                    {
                    }
                };

                textBoxResult.Invoke(updateProcess);
            }
        }
예제 #2
0
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                UpdateTextDelegate updateProcess = delegate()
                {
                    try
                    {
                        this.textBoxResult.Clear();
                        StreamReader sr = new StreamReader(textBoxTotalUncertainty.Text, Encoding.Default);
                        String       line;
                        textBoxResult.AppendText("                                        波段1          波段2           波段3           波段4\r\n");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("图像噪声不确定度%    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }

                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("观测几何不确定度%    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("光谱匹配不确定度%    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("交叉定标总的不确定度%    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        //textBoxResult.AppendText(File.ReadAllText(textBoxCorrectParams.Text));
                        textBoxResult.Select(0, 1);
                        textBoxResult.ScrollToCaret();
                        privilegeManager.AppendLog(this.Text, textBoxTotalUncertainty.Text);
                    }
                    catch (System.IO.FileNotFoundException)
                    {
                    }
                };

                textBoxResult.Invoke(updateProcess);
            }
        }
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                UpdateTextDelegate updateProcess = delegate()
                {
                    try
                    {
                        this.textBoxResult.Clear();
                        //textBoxResult.AppendText("                       观测天顶角 / 观测方位角 / 太阳天顶角 / 太阳方位角");
                        StreamReader sr = new StreamReader(textBoxOutput.Text, Encoding.Default);
                        String       line;
                        while ((line = sr.ReadLine()) != null)
                        {
                            //textBoxResult.AppendText("\r\n参考传感器      ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }

                        /*
                         * if ((line = sr.ReadLine()) != null)
                         * {
                         *  //textBoxResult.AppendText("\r\n待定标传感器     ");
                         *  textBoxResult.AppendText(line.ToString());
                         *  textBoxResult.AppendText("\r\n");
                         * }
                         * if ((line = sr.ReadLine()) != null)
                         * {
                         *  //textBoxResult.AppendText("\r\n四波段BRDF校正系数 ");
                         *  textBoxResult.AppendText(line.ToString());
                         *  textBoxResult.AppendText("\r\n");
                         * }*/
                        //textBoxResult.AppendText(File.ReadAllText(textBoxCorrectParams.Text));
                        textBoxResult.Select(0, 1);
                        textBoxResult.ScrollToCaret();
                        privilegeManager.AppendLog(this.Text, textBoxOutput.Text);
                    }
                    catch (System.IO.FileNotFoundException)
                    {
                    }
                };

                textBoxResult.Invoke(updateProcess);
            }
        }
예제 #4
0
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                UpdateTextDelegate updateProcess = delegate()
                {
                    try
                    {
                        this.textBoxResult.Clear();
                        StreamReader sr = new StreamReader(textBoxOutput.Text, Encoding.Default);
                        String       line;
                        textBoxResult.AppendText("                                       波段1          波段2           波段3           波段4\r\n");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("待定标卫星图像灰度值    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("待定标卫星表观辐亮度     ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText("待定标卫星定标系数    ");
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        textBoxResult.Select(0, 1);
                        textBoxResult.ScrollToCaret();
                        privilegeManager.AppendLog(this.Text, textBoxOutput.Text);
                    }
                    catch (System.IO.FileNotFoundException)
                    {
                    }
                };

                textBoxResult.Invoke(updateProcess);
            }
        }
예제 #5
0
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                UpdateTextDelegate updateProcess = delegate()
                {
                    try
                    {
                        //具体的显示结果
                        this.textBoxResult.Clear();
                        StreamReader sr = new StreamReader(textBoxsave.Text, Encoding.Default);
                        String       line;
                        textBoxResult.AppendText("场地光学厚度(单位:1):");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        textBoxResult.AppendText("场地水汽含量(单位:g/cm2):");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxResult.AppendText(line.ToString());
                            textBoxResult.AppendText("\r\n");
                        }
                        textBoxResult.Select(0, 1);
                        textBoxResult.ScrollToCaret();
                        privilegeManager.AppendLog(this.Text, textBoxsave.Text);
                    }
                    catch (System.IO.FileNotFoundException)
                    {
                    }
                };

                textBoxResult.Invoke(updateProcess);
            }
        }
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                UpdateTextDelegate updateProcess = delegate()
                {
                    privilegeManager.AppendLog(this.Text, textBox2.Text);

                    /*
                     * try
                     * {
                     *  //显示计算出来的结果,通过调用IDL的画图来显示
                     *
                     *
                     *
                     *  this.textBoxResult.Clear();
                     *  StreamReader sr = new StreamReader(textBox2.Text, Encoding.Default);
                     *  String line;
                     *  while ((line = sr.ReadLine()) != null)
                     *  {
                     *      //textBoxResult.AppendText("\r\n参考传感器      ");
                     *      textBoxResult.AppendText(line.ToString());
                     *      textBoxResult.AppendText("\r\n");
                     *  }
                     *  textBoxResult.Select(0, 1);
                     *  textBoxResult.ScrollToCaret();
                     * }
                     * catch (System.IO.FileNotFoundException)
                     * {
                     * }*/
                };

                //textBoxResult.Invoke(updateProcess);
            }
        }
예제 #7
0
        void OnTimedUEvent(object sender, ElapsedEventArgs e)
        {
            if (File.Exists(IDLProgress))
            {
                RUtimer.Stop();
                //触发界面做出响应
                //btnPlaceImage.Enabled = true;
                //读取角度txt在角度信息进行显示  在此调用显示角度信息

                UpdateTextDelegate updateProcess = delegate()
                {
                    try
                    {
                        this.textBoxAngle.Clear();
                        textBoxAngle.AppendText("待定标卫星-待定标传感器\r\n");
                        StreamReader sr = new StreamReader(textBoxSavePendingForAngle.Text, Encoding.Default);
                        String       line;
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText(line.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }
                        textBoxAngle.AppendText("成像日期:年       月        日       时       分       秒\r\n");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText("    ");
                            textBoxAngle.AppendText(line.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }
                        textBoxAngle.AppendText("      观测天顶角  观测方位角  太阳天顶角  太阳方位角\r\n");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText(line.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }

                        textBoxAngle.AppendText("灰度值:波段1      波段2      波段3      波段4\r\n");
                        if ((line = sr.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText(line.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }
                        textBoxAngle.AppendText("参考卫星-参考传感器\r\n");
                        StreamReader sr1 = new StreamReader(textBoxSaveReferForAngle.Text, Encoding.Default);
                        String       line1;
                        if ((line1 = sr1.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText(line1.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }
                        textBoxAngle.AppendText("成像日期:年       月        日       时       分       秒\r\n\r\n");
                        if ((line1 = sr1.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText("    ");
                            textBoxAngle.AppendText(line1.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }
                        textBoxAngle.AppendText("      观测天顶角  观测方位角  太阳天顶角  太阳方位角\r\n");
                        if ((line1 = sr1.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText(line1.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }

                        textBoxAngle.AppendText("表观反射率:波段1      波段2      波段3      波段4\r\n");
                        if ((line1 = sr1.ReadLine()) != null)
                        {
                            textBoxAngle.AppendText(line1.ToString());
                            textBoxAngle.AppendText("\r\n");
                        }
                        //textBoxAngle.AppendText(File.ReadAllText(textBoxSavePendingForAngle.Text));
                        //textBoxAngle.AppendText(Environment.NewLine);
                        //textBoxAngle.AppendText(File.ReadAllText(textBoxSaveReferForAngle.Text));
                        textBoxAngle.Select(0, 1);
                        textBoxAngle.ScrollToCaret();
                        privilegeManager.AppendLog(this.Text, textBoxSavePendingForAngle.Text);
                    }
                    catch (System.IO.FileNotFoundException)
                    {
                    }
                };
                textBoxAngle.Invoke(updateProcess);
            }
        }