草庐IT

Skyfield

全部标签

使用Skyfield到J2000的ECEF

假设我在某些时候有(ECEF)纬度,经度和距离地球的距离。我需要获得它的J2000坐标。我在做什么importskyfield.apiplanets=skyfield.api.load('de421.bsp')earth=planets['earth']ts=skyfield.api.load.timescale()sat=earth+skyfield.api.Topos(latitude_degrees=latitude,longitude_degrees=longitude)obs=earth.at(ts.utc(time)).observe(sat)x,y,z=obs.km然后,我会正常