CCF_Widget.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:gullikson-scripts 作者: kgullikson88 项目源码 文件源码
def plot_ccf(self, name, T, x_range=None):
        # Load the ccf from the HDF5 file.
        logging.debug('Plotting ccf name {}'.format(name))
        observation = self.inst_date
        i = observation.find('/')
        instrument = observation[:i]
        vel, corr = self._ccf_interface.load_ccf(instrument, name)

        # Now, plot
        p = figure(
            title='{} K'.format(T),
            x_range=x_range,
            plot_width=600, plot_height=400,
            title_text_font_size="10pt",
            tools="pan,wheel_zoom,box_select,reset,save"
        )
        p.line(vel, corr, line_width=2)
        p.xaxis[0].axis_label = 'Velocity (km/s)'
        p.yaxis[0].axis_label = 'CCF Power'

        return p
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号