Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
TOPOCENT.M
Package: easy.zip [view]
Upload User: sfyaiting
Upload Date: 2009-10-25
Package Size: 320k
Code Size: 1k
Category:
GPS develop
Development Platform:
Matlab
- function [Az, El, D] = topocent(X,dx)
- %TOPOCENT Transformation of vector dx into topocentric coordinate
- % system with origin at X.
- % Both parameters are 3 by 1 vectors.
- % Output: D vector length in units like the input
- % Az azimuth from north positive clockwise, degrees
- % El elevation angle, degrees
- %Kai Borre 11-24-96
- %Copyright (c) by Kai Borre
- %$Revision: 1.0 $ $Date: 1997/09/26 $
- dtr = pi/180;
- [phi,lambda,h] = togeod(6378137,298.257223563,X(1),X(2),X(3));
- cl = cos(lambda*dtr); sl = sin(lambda*dtr);
- cb = cos(phi*dtr); sb = sin(phi*dtr);
- F = [-sl -sb*cl cb*cl;
- cl -sb*sl cb*sl;
- 0 cb sb];
- local_vector = F'*dx;
- E = local_vector(1);
- N = local_vector(2);
- U = local_vector(3);
- hor_dis = sqrt(E^2+N^2);
- if hor_dis < 1.e-20
- Az = 0;
- El = 90;
- else
- Az = atan2(E,N)/dtr;
- El = atan2(U,hor_dis)/dtr;
- end
- if Az < 0
- Az = Az+360;
- end
- D = sqrt(dx(1)^2+dx(2)^2+dx(3)^2);
- %%%%%%%%% end topocent.m %%%%%%%%%