爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2733|回复: 0

[求助] cinrad绘图剖面为何剖面线位置不准呢

[复制链接]
发表于 2025-4-11 08:42:07 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
def cinrad_plot_profile(file):
    #    'longitude': 122.1,
    #    'latitude': 30.03,
    #    'altitude': 35.7
    # 画一个透明图
    #fig = PPI(data, dpi=300, style="transparent")
    #extent = fig.geoax.get_extent(crs=ccrs.PlateCarree())  # 这个是透明图的边界位置经纬度
    f = cinrad.io.read_auto(file)
    rl = list(f.iter_tilt(230, "REF"))
    cr = cinrad.calc.quick_cr(rl)
    fig = PPI(cr, dpi=500, style="white", add_city_names=True)
    fig.geoax.scatter(
        x=122.34, y=30.3, s=200, c="r", marker="."
    )
    fig.settings["is_inline"] = False  # notebook模式下需要这一行,正常不需要
    vcs = cinrad.calc.VCS(rl)
    sec = vcs.get_section(start_cart=(121., 30.3), end_cart=(123., 30.3))  # 传入经纬度坐标
    # sec = vcs.get_section(start_polar=(113, 250), end_polar=(114, 28)) # 传入极坐标
    # 附加操作
    fig.plot_range_rings([50, 100, 150, 200, , color="white", linewidth=1)  # 用这个来画圈
    fig.gridlines(draw_labels=True, linewidth=1, color="white")  # 用这个来画经纬度网格线
    fig.plot_cross_section(sec, linecolor="red")
    fig("plot_profile.png")


密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表