ファイル:3I-ATLAS-starchart.svg

提供: testwiki
ナビゲーションに移動 検索に移動
    元のファイル (SVG ファイル、1,849 × 591 ピクセル、ファイルサイズ: 1.87メガバイト)

    このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。

    概要

    解説
    English: Plot of the trajectory of interstellar comet 3I/ATLAS against the stellar background from 2024 to 2026. Made with Python using packages Starplot [1] and Skyfield [2]. Heliocentric orbital elements are from the MPC.
    日付
    原典 投稿者自身による著作物
    作者 Thunkii
    その他のバージョン
    SVG 開発
    InfoField
     このベクター画像のソースコードは 正しくありません。エラーが484件あります.
     このW3C-無効 記号は不明のSVGツールで作成されました。
    Python source
    InfoField
    click to expand
    # Code adapted from example on Starplot documentation website
    from skyfield.api import load
    from skyfield.data import mpc
    from skyfield.constants import GM_SUN_Pitjeva_2005_km3_s2 as GM_SUN
    
    from starplot import MapPlot, Projection, Star, _
    from starplot.styles import PlotStyle, extensions
    
    # First, we use Skyfield to get comet data
    # Code adapted from: https://rhodesmill.org/skyfield/kepler-orbits.html#comets
    with load.open(mpc.COMET_URL) as f:
        comets = mpc.load_comets_dataframe(f)
    
    # Keep only the most recent orbit for each comet,
    # and index by designation for fast lookup.
    comets = (
        comets.sort_values("reference")
        .groupby("designation", as_index=False)
        .last()
        .set_index("designation", drop=False)
    )
    
    # Find comet
    row = comets.loc["3I/ATLAS"]
    print(row)
    
    ts = load.timescale()
    eph = load("de440.bsp")
    sun, earth = eph["sun"], eph["earth"]
    comet = sun + mpc.comet_orbit(row, ts, GM_SUN)
    
    # Find the RA/DEC of comet for every 8 days starting on October 2, 2024
    radecs = []
    for day in range(-1000, 2000, 10):
        t = ts.utc(2024, 9 , 28 + day)
        ra, dec, distance = earth.at(t).observe(comet).radec()
        radecs.append((t, ra.hours * 15, dec.degrees))
    
    # Now let's plot the data on a map!
    style = PlotStyle().extend(
        extensions.GRAYSCALE_DARK,
        {"figure_background_color": "hsl(136, 0%, 20%)"},
        extensions.MAP,
        {
            "star": {
                "label": {
                    "font_weight": "normal",
                }
            },
            "legend": {
                "location": "lower center",
            },
            "ecliptic": {
                "label": {
                    "font_size": 25}},
            "constellation_labels": {
                "font_size": 20,
                "font_weight": "heavy",}
        },
    )
    style.legend.location = "lower center"
    
    p = MapPlot(
        projection=Projection.MERCATOR,
        ra_min=6 * 15,
        ra_max=20 * 15,
        dec_min=-32,
        dec_max=32,
        style=style,
        resolution=2500,
        scale=0.4,
    )
    
    # Plot the comet markers first, to ensure their labels are plotted
    for t, ra, dec in radecs:
        if (t.tt>=2460793) and (t.tt<=2461120):
            if (t.utc.month==1 and t.utc.day<=10) or t.tt <=2460793+10:
                label=f"{t.utc_strftime('%Y %b %-d')}"
            else:
                label = f"{t.utc_strftime('%b %-d')}"
            p.marker(
            ra=ra,
            dec=dec,
            style={
                "marker": {
                    "size": 10,
                    "symbol": "circle",
                    "fill": "none",
                    "color": "hsl(0,100%,50%)",
                    "edge_color": "hsl(0,100%,50%)",
                    "alpha": 1,
                    "zorder": 4096,
                },
                "label": {
                    "font_size": 21,
                    "font_weight": "bold",
                    "font_color": "hsl(60, 70%, 72%)",
                    "zorder": 4096,
                    "offset_x": "auto",
                    "offset_y": "auto",
                },
            },
            label=label,
            legend_label="3I/ATLAS",
        )
        else:
            label = None
            p.marker(
            ra=ra,
            dec=dec,
            style={
                "marker": {
                    "size": 2,
                    "symbol": "circle",
                    "fill": "none",
                    "color": "hsl(0,100%,50%)",
                    "edge_color": "hsl(0,100%,50%)",
                    "alpha": 1,
                    "zorder": 2048,
                },
            },
            legend_label="3I/ATLAS",
        )
    
    p.gridlines(labels=False)
    p.constellations()
    p.constellation_borders()
    p.stars(where=[_.magnitude < 6], where_labels=[_.magnitude < 2])
    p.constellation_labels()
    p.milky_way()
    p.ecliptic()
    p.title('Path of 3I/ATLAS', style={
        "font_size":58,
        "font_weight":"bold",
        "font_color":"hsl(136, 0%, 90%)",
        "anchor_point":'center',
    })
    
    p.export("map_comet_3i.svg",format='svg', padding=0)
    

    ライセンス

    この作品の著作権者であるThunkiiは、この作品を以下のライセンスで提供しています。
    w:ja:クリエイティブ・コモンズ
    表示
    このファイルはクリエイティブ・コモンズ 表示 4.0 国際ライセンスのもとに利用を許諾されています。
    帰属:
    あなたは以下の条件に従う場合に限り、自由に
    • 共有 – 本作品を複製、頒布、展示、実演できます。
    • 再構成 – 二次的著作物を作成できます。
    あなたの従うべき条件は以下の通りです。
    • 表示 – あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があったらその旨を示さなければなりません。これらは合理的であればどのような方法で行っても構いませんが、許諾者があなたやあなたの利用行為を支持していると示唆するような方法は除きます。

    キャプション

    このファイルの内容を1行で記述してください
    Plot of the trajectory of interstellar comet 3I/ATLAS against the stellar background from 2024 to 2026.

    このファイルに描写されている項目

    題材

    31 7 2025

    ファイルの履歴

    過去の版のファイルを表示するには、その版の日時をクリックしてください。

    日時サムネイル寸法利用者コメント
    現在の版2025年8月1日 (金) 03:162025年8月1日 (金) 03:16時点における版のサムネイル1,849 × 591 (1.87メガバイト)wikimediacommons>Thunkiishaving off sides

    このファイルを使用しているページはありません。