当前位置: 首页>>代码示例>>Python>>正文


Python Map.draw_limb方法代码示例

本文整理汇总了Python中sunpy.map.Map.draw_limb方法的典型用法代码示例。如果您正苦于以下问题:Python Map.draw_limb方法的具体用法?Python Map.draw_limb怎么用?Python Map.draw_limb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sunpy.map.Map的用法示例。


在下文中一共展示了Map.draw_limb方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test2

# 需要导入模块: from sunpy.map import Map [as 别名]
# 或者: from sunpy.map.Map import draw_limb [as 别名]
def test2():
    aia = Map(sunpy.AIA_171_IMAGE)
    fig = plt.figure()
    ax = plt.subplot(111)
    aia.plot()
    plt.colorbar()
    aia.draw_limb()
    plt.show()
开发者ID:kinketu,项目名称:Astronomy,代码行数:10,代码来源:sunpy_test.py

示例2: len

# 需要导入模块: from sunpy.map import Map [as 别名]
# 或者: from sunpy.map.Map import draw_limb [as 别名]
c_map.set_colors(1, c_map_cm)
c_map.set_alpha(1, 0.8)

# Create the figure
plt.close('all')
figure = plt.figure()
axes = figure.add_subplot(111)
if for_paper:
    observation = r"AIA {:s}".format(mc[0].measurement._repr_latex_())
    title = "wave progress map\n{:s}".format(observation)
    image_file_type = 'eps'
else:
    title = "{:s} ({:s})".format(observation_date, wave_name)
    image_file_type = 'png'
ret = c_map.plot(axes=axes, title=title)
c_map.draw_limb()
c_map.draw_grid()

# Set up the color bar
nticks = 6
timestamps_index = np.linspace(1, len(timestamps)-1, nticks, dtype=np.int).tolist()
cbar_tick_labels = []
for index in timestamps_index:
    wpm_time = timestamps[index].strftime("%H:%M:%S")
    cbar_tick_labels.append(wpm_time)
cbar = figure.colorbar(ret[1], ticks=timestamps_index)
cbar.ax.set_yticklabels(cbar_tick_labels)
cbar.set_label('time (UT) ({:s})'.format(observation_date))
cbar.set_clim(vmin=1, vmax=len(timestamps))

# Show the figure
开发者ID:wafels,项目名称:eitwave,代码行数:33,代码来源:swave_characterize.py

示例3: Map

# 需要导入模块: from sunpy.map import Map [as 别名]
# 或者: from sunpy.map.Map import draw_limb [as 别名]
# Create the composite map
c_map = Map(sun_image, fp_map, best_long_score_map, composite=True)

# Create the figure
plt.close('all')
figure = plt.figure()
axes = figure.add_subplot(111)
if for_paper:
    observation = r"AIA {:s}".format(mc[0].measurement._repr_latex_())
    title = "wave fit map\n{:s}".format(observation)
    image_file_type = 'png'
else:
    title = "{:s} ({:s})".format(observation_date, wave_name)
    image_file_type = 'png'
ret = c_map.plot(axes=axes, title=title)
c_map.draw_limb(color='c')
c_map.draw_grid(color='c')

# Add a small circle to indicate the estimated epicenter of the wave
ip = SkyCoord(transform_hpc2hg_parameters['epi_lon'],
              transform_hpc2hg_parameters['epi_lat'],
              frame='heliographic_stonyhurst').transform_to(sun_image.coordinate_frame)
ccc = Circle((ip.Tx.value, ip.Ty.value), radius=50, edgecolor='w', fill=True, facecolor='c', zorder=1000)
axes.add_patch(ccc)

# Set up the color bar
nticks = 6
timestamps_index = np.linspace(1, len(timestamps)-1, nticks, dtype=np.int).tolist()
cbar_tick_labels = []
for index in timestamps_index:
    wpm_time = timestamps[index].strftime("%H:%M:%S")
开发者ID:wafels,项目名称:eitwave,代码行数:33,代码来源:swave_characterize3.py


注:本文中的sunpy.map.Map.draw_limb方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。