在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaAstro/SkyCoords.jl开源软件地址:https://github.com/JuliaAstro/SkyCoords.jl开源编程语言:Julia 100.0%开源软件介绍:SkyCoords.jlBasic astronomical coordinate systems in Julia. Installationjulia> Pkg.add("SkyCoords") UsageThere are currently three supported coordinate systems. The following immutable types are used to represent coordinates in each system:
julia> c1 = ICRSCoords(0, 0) # inputs are ra, dec in radians
ICRSCoords{Float64}(0.0, 0.0)
julia> c2 = convert(GalCoords, c1) # convert to a different system
GalCoords{Float64}(1.6814027872278692, -1.0504884034813007)
julia> convert(FK5Coords{2000}, c1)
FK5Coords{2000,Float64}(1.1102233723050067e-7, 4.411803426976326e-8)
julia> separation(c1, ICRSCoords(1., 0.)) # radians
1.0
julia> position_angle(c1, ICRSCoords(1, 0)) |> rad2deg
90.0 For more information, visit the documentation License and CreditsLicense is MIT. This package profits from the hard work that went into astropy.coordinates, especially in terms of testing and coordinate system definitions. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论