ae2xy.f90

来自「QC2sky有效的把TEQC生成的卫星相关信息图形化」· F90 代码 · 共 45 行

F90
45
字号
!----------------------------------------------------------------
! AE2XY - Transform azimut and elevation to cartesian coordinates
!
! Copyright (C) 2004 Marco Roggero <roggero@atlantic.polito.it>
!
! This file is part of QC2SKY.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License
! as published by the Free Software Foundation; either version 2,
! or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with this program; if not, write to the Free Software
! Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
!----------------------------------------------------------------

subroutine AE2XY(az,el,x,y)

implicit integer*4	(a-n)
implicit real*8		(o-z)

real*8	az,el,x,y

pi	= 3.1415926535897932384626434d0

!Mode 1
az	= pi*(-az-90.d0)/180.d0
r	= 1.d0-el/90.d0

!Mode2
!az	= pi*(-az-90)/180.d0
!el	= pi*el/180.d0
!r	= dcos(el)

x	= r*dcos(az)
y	= r*dsin(az)

end subroutine

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?