plate.py 文件源码

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

项目:marvin 作者: sdss 项目源码 文件源码
def _getPlateFromFile(self):
        ''' Initialize a Plate from a Cube/RSS File'''

        # Load file
        try:
            self._hdr = fits.getheader(self.filename, 1)
            self.plateid = int(self._hdr['PLATEID'])
        except Exception as e:
            raise MarvinError('Could not initialize via filename: {0}'
                              .format(e))
        else:
            self.data_origin = 'file'
            self._makePdict()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号