本文整理汇总了Python中astropy.coordinates.EarthLocation.to_geocentric方法的典型用法代码示例。如果您正苦于以下问题:Python EarthLocation.to_geocentric方法的具体用法?Python EarthLocation.to_geocentric怎么用?Python EarthLocation.to_geocentric使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类astropy.coordinates.EarthLocation
的用法示例。
在下文中一共展示了EarthLocation.to_geocentric方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: EarthLocation
# 需要导入模块: from astropy.coordinates import EarthLocation [as 别名]
# 或者: from astropy.coordinates.EarthLocation import to_geocentric [as 别名]
import numpy as np
import matplotlib.pyplot as plt
from astropy import units as u
from astropy.time import Time
from astropy.coordinates import SkyCoord, EarthLocation, AltAz
from astropy.coordinates import ICRS, Galactic, FK4, FK5
#Find Altitude and Azimuth at ARO of the zenith at DRAO
#Observatories
ARO = EarthLocation(lat=45.9555*u.deg, lon=-78.0730*u.deg, height=390*u.m)
DRAO = EarthLocation(lat=49.321*u.deg, lon=-119.624*u.deg, height=545*u.m)
midnight = Time('2015-9-01 00:00:00')
zenith = SkyCoord(AltAz,az=358.2*u.deg,alt=50.0*u.deg, obstime=midnight, location=DRAO)
ARO_coords = ARO.to_geocentric()
DRAO_coords = DRAO.to_geocentric()
print DRAO_coords
print ARO_coords