美文网首页大数据 爬虫Python AI SqlPython小哥哥
史上第一张黑洞照片是用Python合成的?

史上第一张黑洞照片是用Python合成的?

作者: 14e61d025165 | 来源:发表于2019-04-13 14:33 被阅读61次
<tt-image data-tteditor-tag="tteditorTag" contenteditable="false" class="syl1555137158242" data-render-status="finished" data-syl-blot="image" style="box-sizing: border-box; cursor: text; color: rgb(34, 34, 34); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: block;"> image

<input class="pgc-img-caption-ipt" placeholder="图片描述(最多50字)" value="" style="box-sizing: border-box; outline: 0px; color: rgb(102, 102, 102); position: absolute; left: 187.5px; transform: translateX(-50%); padding: 6px 7px; max-width: 100%; width: 375px; text-align: center; cursor: text; font-size: 12px; line-height: 1.5; background-color: rgb(255, 255, 255); background-image: none; border: 0px solid rgb(217, 217, 217); border-radius: 4px; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;"></tt-image>

这两天,史上第一张黑洞照片,在朋友圈和各大公众号疯传,希望你没有收到视觉中国的律师函。

好了,言归正传。

这个照片是怎么「拍到」的呢?

其中一位研究人员(一个妹子,MIT 的博士,就是头图这位)就在 TED 上进行了很好的讲解。

视频在线观看地址:http://t.cn/E6dwQa5,也可以通过文章底部阅读原文查看。

这是一个两年前的视频,当时这张照片还没有诞生,但是这个项目已经启动了。

也就是,拍摄这张照片,至少用了两年时间。

Python学习群:683380553,有大牛答疑,有资源共享!有想学习python编程的,或是转行,或是大学生,还有工作中想提升自己能力的,正在学习的小伙伴欢迎加入学习。


这里,我来大概的说一下视频内容:

1、首先,想要拍到那个黑洞,需要一个和地球差不多大小的望远镜,至于为什么,请看上面提到的妹子讲解;

<tt-image data-tteditor-tag="tteditorTag" contenteditable="false" class="syl1555137158247 ql-align-center" data-render-status="finished" data-syl-blot="image" style="box-sizing: border-box; cursor: text; text-align: left; color: rgb(34, 34, 34); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: block;"> image

<input class="pgc-img-caption-ipt" placeholder="图片描述(最多50字)" value="" style="box-sizing: border-box; outline: 0px; color: rgb(102, 102, 102); position: absolute; left: 187.5px; transform: translateX(-50%); padding: 6px 7px; max-width: 100%; width: 375px; text-align: center; cursor: text; font-size: 12px; line-height: 1.5; background-color: rgb(255, 255, 255); background-image: none; border: 0px solid rgb(217, 217, 217); border-radius: 4px; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;"></tt-image>

2、显然,我们没有那么大望远镜,怎么办呢?这些科学家们就想到了,将遍布全世界的望远镜连接起来;

<tt-image data-tteditor-tag="tteditorTag" contenteditable="false" class="syl1555137158251" data-render-status="finished" data-syl-blot="image" style="box-sizing: border-box; cursor: text; color: rgb(34, 34, 34); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: block;"> image

<input class="pgc-img-caption-ipt" placeholder="图片描述(最多50字)" value="" style="box-sizing: border-box; outline: 0px; color: rgb(102, 102, 102); position: absolute; left: 187.5px; transform: translateX(-50%); padding: 6px 7px; max-width: 100%; width: 375px; text-align: center; cursor: text; font-size: 12px; line-height: 1.5; background-color: rgb(255, 255, 255); background-image: none; border: 0px solid rgb(217, 217, 217); border-radius: 4px; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;"></tt-image>

3、通过电脑让这些望远镜协同工作,然后对这些望远镜拍摄的数据进行处理、筛选、合成等等,比较复杂的算法操作;

<tt-image data-tteditor-tag="tteditorTag" contenteditable="false" class="syl1555137158257 ql-align-center" data-render-status="finished" data-syl-blot="image" style="box-sizing: border-box; cursor: text; text-align: left; color: rgb(34, 34, 34); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: block;"> image

<input class="pgc-img-caption-ipt" placeholder="图片描述(最多50字)" value="" style="box-sizing: border-box; outline: 0px; color: rgb(102, 102, 102); position: absolute; left: 187.5px; transform: translateX(-50%); padding: 6px 7px; max-width: 100%; width: 375px; text-align: center; cursor: text; font-size: 12px; line-height: 1.5; background-color: rgb(255, 255, 255); background-image: none; border: 0px solid rgb(217, 217, 217); border-radius: 4px; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;"></tt-image>

4、数据处理的过程,就要用到我们的 Python 了!

其中,最重要的部分,就是根据那么多零散的数据,如何处理?来得到我们现在看到的这个照片?

视频中花了比较大的篇幅介绍算法,我是看不太懂了......

有兴趣的也可以看下论文,地址:http://t.cn/E6dzFXo

论文中提到了很多 Python 库:

  • Numpy
  • Scipy
  • Pandas
  • Jupyter
  • Matplotlib
  • Astropy

并且,在他们自己实现的代码中,也有用到Python ,代码库就存放在 GitHub 上:

https://github.com/achael/eht-imaging

<tt-image data-tteditor-tag="tteditorTag" contenteditable="false" class="syl1555137158264" data-render-status="finished" data-syl-blot="image" style="box-sizing: border-box; cursor: text; color: rgb(34, 34, 34); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: block;"> image

<input class="pgc-img-caption-ipt" placeholder="图片描述(最多50字)" value="" style="box-sizing: border-box; outline: 0px; color: rgb(102, 102, 102); position: absolute; left: 187.5px; transform: translateX(-50%); padding: 6px 7px; max-width: 100%; width: 375px; text-align: center; cursor: text; font-size: 12px; line-height: 1.5; background-color: rgb(255, 255, 255); background-image: none; border: 0px solid rgb(217, 217, 217); border-radius: 4px; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;"></tt-image>

其实,到这里,我们可以看出,第一张黑洞照片,并不是完全意义上「拍」出来的,它是通过算法合成出来的。

可以看出妹子在跑代码,没有报错时兴奋的表情:

<tt-image data-tteditor-tag="tteditorTag" contenteditable="false" class="syl1555137158268" data-render-status="finished" data-syl-blot="image" style="box-sizing: border-box; cursor: text; color: rgb(34, 34, 34); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: block;"> image

<input class="pgc-img-caption-ipt" placeholder="图片描述(最多50字)" value="" style="box-sizing: border-box; outline: 0px; color: rgb(102, 102, 102); position: absolute; left: 187.5px; transform: translateX(-50%); padding: 6px 7px; max-width: 100%; width: 375px; text-align: center; cursor: text; font-size: 12px; line-height: 1.5; background-color: rgb(255, 255, 255); background-image: none; border: 0px solid rgb(217, 217, 217); border-radius: 4px; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;"></tt-image>

下次谁在说 Python 的坏话时,记得提醒 ta:Python 曾帮助拍摄了第一张黑洞照片!

相关文章

  • 史上第一张黑洞照片是用Python合成的?

    这两天,史上第一张黑洞照片,在朋友圈和各大公众号疯传,希望你没有收到视觉中国的律师函。 好...

  • 甜甜圈、小太阳、指环王……比黑洞更大的是脑洞

    北京时间4月10日晚9点许,人类史上第一张黑洞照片揭开了神秘面纱。 ▲人类史上第一张黑洞照片 不过,黑洞大概自己也...

  • 人类史上首张黑洞照片亮相!

    北京时间4月10日晚9点,人类史上第一张黑洞照片揭开了神秘面纱。我们成为史上第一代“看见”黑洞的人! 人类首张黑洞...

  • 怕视觉中国告你侵权?简单三招,十分钟帮你一年节省几十万

    ​这两天,人类史上第一张黑洞照片在朋友圈内疯狂刷屏,但紧接着,“视觉中国“就将其纳为己有: 黑洞照片是我们的全人类...

  • 2019-04-14

    北京时间4月10日晚9点,天文学家捕获首张黑洞照片,人类史上第一张黑洞照片揭开了神秘面纱。 不对,放错了,是它~ ...

  • 被玩坏的黑洞,到底是什么?

    人类史首张黑洞照片 北京时间2019年4月10日晚,人类史上第一张黑洞照片被公之于众,来自M87星系。 这张照片在...

  • 黑洞照片搞怪

    昨晚九点,人类历史上第一张真实的黑洞照片诞生,证明爱因斯坦广义相对论成立。 黑洞是一种宇宙中的物理现象,就宇宙来讲...

  • 牛顿说黑洞这个事比股票容易,他真的说过

    昨天晚上人类发布了第一张黑洞照片,其实并不是照片,只是电脑模拟的合成照,当然是在天文望远镜观察的基础上。 下面这几...

  • 管窥

    人类第一张黑洞照片,用几乎等于地球直径的虚拟望远镜网络,去看25000光年之外的一个黑洞,真的是很形象的管...

  • 史上首张黑洞照片发布

    今天2019年4月10日,人类史上第一张黑洞照片发布了,为大众解开了黑洞的神秘面目。也再一次证实了爱因斯坦是正确的...

网友评论

    本文标题:史上第一张黑洞照片是用Python合成的?

    本文链接:https://www.haomeiwen.com/subject/iqnlwqtx.html