为什么高程是错误的我坐标,谁能给我解释一下

问题描述 投票:0回答:1

可能有几个类似的问题,当然,帮助我找到一种方法来计算具体的经纬度座标等太阳位置的,在我的情况柏林。但是我得到错误的结果。有一个在我的结果8或9度差。

如果你检查这两个网站,其中的值是不同的。 https://www.timeanddate.com/sun/germany/berlin

https://www.suncalc.org/#/52.5072,13.4248,10/2019.01.30/16:45/1/0

我有不同的类型代码,但所有的工作方式相同。如果为什么我的结果有如此巨大的差异,我不能弄明白。

from astropy.coordinates import EarthLocation, SkyCoord, get_sun, AltAz
from astropy.time import Time
import astropy.units as u
utcoffset = 1*u.hour  # Central European Time
ctime = Time.now() + utcoffset
Berlin = EarthLocation(lat = 52.50721*u.deg, lon = 13.42475*u.deg)
get_sun(ctime).transform_to(AltAz(location=Berlin))

结果如下:

<SkyCoord (AltAz: obstime=2019-01-30 16:58:26.084488, location=(3784032.5060993554, 903211.2359915433, 5037352.958007532) m, pressure=0.0 hPa, temperature=0.0 deg_C, relative_humidity=0.0, obswl=1.0 micron): (az, alt, distance) in (deg, deg, m)
    (255.03483501, -10.75194363, 1.47368685e+11)>
astronomy astropy altitude solar
1个回答
0
投票

没关系......对不起你们......我想通了。我没有在这里的考虑偏移的时候就已经给位置经纬度长的柏林。

© www.soinside.com 2019 - 2024. All rights reserved.