资源简介
经度:东经为正数,西经为负数。
纬度:北纬为正数,南纬为负数。
将大地坐标转换为笛卡尔坐标(地心直角坐标),具体算法实现包含在代码之中。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.IO;
using System.Net.Sockets;
using System.Data.OleDb;
namespace Angle
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
///
/// 常量参数
///
public Normal_Num normal_num = new Normal_Num();
///
/// 终端经度值
///
public double Longitude_Terminal;
///
/// 终端纬度值
///
public double B_Terminal;
///
/// 终端高度值
///
public double High_Terminal;
///
/// 卫星经度值
///
public double Longitude_Satellite;
///
/// 卫星纬度值
///
public double B_Satellite;
///
/// 卫星高度值
///
public double High_Satellite;
///
/// 开始计算
///
///
///
private void buttonItem2_Click(object sender EventArgs e)
{
try
{
Longitude_Terminal = double.Parse(textBox3_Longitude_Terminal.Text);
B_Terminal = double.Parse(textBox5_B_Terminal.Text);
High_Terminal = double.Parse(textBox6_High_Terminal.Text);
Longitude_Satellite = double.Parse(textBox7_Longitude_Satellite.Text);
B_Satellite = double.Parse(textBox8_B_Satellite.Text);
High_Satellite = double.Parse(textBox9_High_Satellite.Text);
//终端N常量
double N_Terminal = normal_num.a_Earth_Len / (Math.Sqrt(1 - (normal_num.e_Earth_Pianxinlv * Math.Pow((Math.Sin(B_Terminal)) 2))));
//计算终端在地心直角坐标系中的坐标
double X_Terminal = (N_Terminal + High_Terminal) * Math.Cos(B_Terminal) * Math.Cos(Longitude_Terminal);
double Y_Terminal = (N_Terminal + High_Terminal) * Math.Cos(B_Terminal) * Math.Sin(Longitude_Terminal);
double Z_Terminal = (N_Terminal * (1 - normal_num.e_Earth_Pianxinlv) + High_Terminal) * Math.Sin(B_Terminal);
//卫星N常量
double N_Satellite = normal_num.a_Earth_Len / (Math.Sqrt(1 - (normal_num.e_Earth_Pianxinlv * Math.Pow((Math.Sin(B_Satellite)) 2))));
//计算卫星在地心直角坐标系中的坐标
double X_Satellite = (N_Satellite + High_Satellite) * Math.Cos(B_Satellite) * Math.Cos(Longitude_Satellite);
double Y_Satellite = (N_Satellite + High_Satellite) * Math.Cos(B_Satellite) * Math.Sin(Longitude_Satellite);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3977 2019-10-23 16:10 Angle\Angle\Angle.csproj
文件 28672 2019-10-28 14:59 Angle\Angle\bin\Debug\Angle.exe
文件 36352 2019-10-28 14:59 Angle\Angle\bin\Debug\Angle.pdb
文件 11600 2019-10-28 18:12 Angle\Angle\bin\Debug\Angle.vshost.exe
文件 490 2018-09-15 15:29 Angle\Angle\bin\Debug\Angle.vshost.exe.manifest
文件 6243 2019-10-28 14:45 Angle\Angle\Form1.cs
文件 48878 2019-10-25 10:53 Angle\Angle\Form1.Designer.cs
文件 10818 2019-10-25 10:53 Angle\Angle\Form1.resx
文件 1412 2019-10-28 18:12 Angle\Angle\obj\x86\Debug\Angle.csproj.FileListAbsolute.txt
文件 975 2019-10-28 14:59 Angle\Angle\obj\x86\Debug\Angle.csproj.GenerateResource.Cache
文件 28928 2019-10-28 14:59 Angle\Angle\obj\x86\Debug\Angle.csprojResolveAssemblyReference.cache
文件 28672 2019-10-28 14:59 Angle\Angle\obj\x86\Debug\Angle.exe
文件 3564 2019-10-25 10:53 Angle\Angle\obj\x86\Debug\Angle.Form1.resources
文件 36352 2019-10-28 14:59 Angle\Angle\obj\x86\Debug\Angle.pdb
文件 180 2019-10-23 16:10 Angle\Angle\obj\x86\Debug\Angle.Properties.Resources.resources
文件 17207 2019-10-28 14:57 Angle\Angle\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6522 2019-10-28 14:59 Angle\Angle\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 486 2019-10-23 15:08 Angle\Angle\Program.cs
文件 1360 2019-10-23 15:08 Angle\Angle\Properties\AssemblyInfo.cs
文件 2862 2019-10-23 15:08 Angle\Angle\Properties\Resources.Designer.cs
文件 5612 2019-10-23 15:08 Angle\Angle\Properties\Resources.resx
文件 1092 2019-10-23 15:08 Angle\Angle\Properties\Settings.Designer.cs
文件 249 2019-10-23 15:08 Angle\Angle\Properties\Settings.settings
文件 857 2019-10-23 15:08 Angle\Angle.sln
..A..H. 22016 2019-10-29 17:46 Angle\Angle.suo
目录 0 2019-10-23 15:08 Angle\Angle\obj\x86\Debug\TempPE
目录 0 2019-10-28 14:59 Angle\Angle\obj\x86\Debug
目录 0 2019-10-28 14:54 Angle\Angle\bin\Debug
目录 0 2019-10-28 14:54 Angle\Angle\obj\x86
目录 0 2019-10-28 14:54 Angle\Angle\bin
............此处省略7个文件信息
- 上一篇:LANDSAT8辐射定标与大气校正
- 下一篇:西门子200PTO脉冲输出程序
评论
共有 条评论