哈勃望远镜api的python包装器。

hubblep的Python项目详细描述


#hubblepy-hubblesite.org api的python包装器

[![构建状态](https://travis-ci.org/aschleg/hubblepy.svg?branch=master)(https://travis ci.org/aschleg/hubblepy)
[![构建状态](https://ci.appveyor.com/api/projects/status/h4arxow3ord4njd7?svg=true)(https://ci.appveyor.com/project/aschleg/hubblepy)
[![覆盖状态](https://workalls.io/repos/github/aschleg/hubblepy/badge.svg?branch=master)(https://coveralls.io/github/aschleg/hubblepy?分支=主)
[![科达西徽章](https://api.codacy.com/project/badge/grade/586d9f157a2248bf951a5d392f5ebbef)(https://www.codacy.com/app/aschleg/hubblepy?utm_source=github.com&;utm_medium=referration&;utm_content=aschleg/hubblepy&;utm_campaign=badge_grade)
[![文档状态](https://readthedocs.org/projects/hubblepy/badge/?版本=最新](https://hubblepy.readthedocs.io/en/latest/?徽章=最新)
![python版本](https://img.shields.io/badge/python-3.4%2c%203.5%2c%203.6-blue.svg)

`hubblepy'是一个简单易用的api包装器,适用于[hubblesite](http://hubblesite.org/)api。

相关

文档

*[hubblesite.org API文档](http://hubblesite.org/api/documentation)


~~巨蟒
hubblepy.news()[0:3]

[{'name':'哈勃发现了中子星周围从未见过的特征,
'news'id':'2018-43',
'url':'http://hubblesite.org/news'release/news/2018-43'},
{'name':'哈勃大范围寻找遥远的星系,
'news'id':'2018-39',
'url':'http://hubblesite.org/news撸release/news/2018-39'},
{'name':"美国宇航局詹姆斯韦伯太空望远镜关键通信测试成功",
'news撸id':'2018-31',
'url':'http://webbscope.org/articles/2018-31'}
~~

一篇已发表的新闻文章的具体细节

返回最新发表文章的摘要和更多信息。

~~ python
hubblepy.news廑release('last')

{摘要':'想象一下将50000多艘航空母舰压成一个棒球大小。这描述了中子星。它们是宇宙中最奇怪的物体之一。中子星是由重力的不可饶恕力产生的极端物理现象。爆炸恒星的整个核心被压缩成一个固体中子球,其密度与原子核的密度相当。中子星的旋转速度和泥上的搅拌器一样快。一些人吐出了死亡之星的强烈辐射光束,就像星际灯塔。这些被称为脉冲星。\r\n\r\n这些光束通常在X射线、伽马射线和无线电波中可见。但是天文学家利用哈勃望远镜的近红外(ir)观测了附近一颗中子星rx j0806.4-4123。他们惊讶地看到一股红外线从中子星周围的一个区域射出。红外线可能来自一个180亿英里宽的绕星圆盘。另一个想法是脉冲星磁场中的亚原子粒子风猛烈撞击星际气体。哈勃的红外成像为理解这些"无间道机器"是如何工作的打开了一扇新的窗口。\r\n',
"学分":,<;a href="http://www.nasa.gov">;nasa<;/a>;,<;a href="http://www.spacetelescope.org">;esa<;/a>;,和b.posselt
(宾夕法尼亚州立大学)
"keYSTONE廑IMAGE廑1x':'https://media.stsci.edu/uploads/story/display廑IMAGE/1243/low廑stsci-h-p1843a-k-1340x520.png',
'keystone廑IMAGE廑2x':'https://media.stsci.edu/uploads/story/display廑IMAGE/1243/stsci-h-p1843a-k-1340x520.png',
'任务':'哈勃',
'名称':'哈勃从未发现过《中子星周围见特征》,
《新闻联播:2018-43》,
《出版物:2018-09-17T11:00:00.000-04:00》,
《新闻联播:2018-09-09-17T11:00:00:00.000-04:00》,
《新闻联播:4231,4232,4233》,
《缩略图》:'https://media.stsci.edu.edu/uplow/story/thumbnail/1243/low-stsci-h-p1843A-t-400x400.png',
《缩略图:缩略图:https://media.stsci.edu.edu.edu/uploads/uploads/uploads/uploads/uploads故事/缩略图/1243/low_st《中国科学-H-p1843A-T-400x4400.x400.png》,
'thumbnail'2x'thumbnail'https://media.stsci.edu/uploads/story/thumbnail/1243/stsci-h-p1843A-t-400x400.png''https://media.stsci.edu/uploads/story/thumbnail/1243/stsci-h-p1843A-t-400x400.png',
'url'''http://hubbblesite.org/news-site.org/newsu-release/news-release/news/2018-2018-2018-43'}
'sh>~~~

或使用"新闻ID"re从"news()"函数中,我们可以获得更多关于发表的其他文章的具体信息。


~~ python
hubblepy.news\u release('2018-31')

{{摘要':'当美国宇航局的james webb太空望远镜在距地球近100万英里的轨道上运行时,
与它的任务ope持续通信巴尔的摩的口粮中心(MOC)将是必不可少的。最近,在空间望远镜科学研究所,moc webb飞行操作小组成功地完成了两项关键的通信测试。第一个例子表明,从韦伯发射到飞行的前六个小时,世界上五个不同的服务提供商之间可以进行复杂的交换,他们将交替地传递命令和遥测通信。第二次测试表明,MOC能够成功地
指挥望远镜,
‘kestone-image-u1x’:'https://media.stsci.edu/uploads/story/display-image/1239/low-stsci-j-p1831a-k-1340x520.png,
‘kestone-image-u2x’:'https://media.stsci.edu/uploads/story/display-image/1239/stsci-j-p1831a-k-1340x520.png,
‘使命’:'james'james'U形网B’,
'name':"美国宇航局詹姆斯·韦伯太空望远镜关键通信测试成功",
'news'id':'2018-31',
'publication':'2018-09-05T10:00:00.000-04:00',
'publication':'2018-09-09-05T10:09-00:00.000-04:00',
'release-images':[4225],
'thumbnail':'https://media.stsci.edu/uploads/story/thumbnail/1239/low-ustssci-j-p1831a-t831a-t800x8800-800x800.png',
'thumbhttps://med网址《美国科学技术史》一书。edu/uploads/story/thumbnail/1239/low-stsci-j-p1831a-t800x800.png",
‘thumbnail-u2x’http://media.stsci.edu/uploads/story/thumbnail/1239/stsci-j-p1831a-t800x800.png,
‘thumb‘thumb视网膜’http://media.stsci.edu/uploads/story/thumbnail/1239/stsci-j-p1831a-t800x8800.png,
‘url’,
‘url’:'http://www.web望远镜望远镜‘http://web.org/articles/2018-31'}
~~


<


~~~python
>hubbblpy.image收藏(收藏名为航天器)图片收藏(收藏名为航天器)图片收藏




{'id:3814,'name':'grappling hubble hubble(2009)},
{'id:3813,'name':'向哈勃告别(2009)},
{'id'id:3812,'name':'hubble from behind(2009)},'hubble'2009)},

{'id:3812,'id''name''name'''2008我是说,
{id:3811,'name':'installing wide field camera 3(2009)},
{id:3810,'name':'final release over earth(2009)},
{id:3809,'name':'reflection on work(2009)},
{id:3808,'name':'in a day work(2009)},
{id:3807,'name':'going up?(2009)},
{id:3806,'name':'就位(2009)},
{id:3805,'name':'与哈勃(2009)},
{id:3804,'name':'将哈勃从亚特兰蒂斯'货舱(2009)},
{id:3836,
'name':'哈勃控制中心,戈达德航天飞行中心(1999)},
{id:3835,
'name':'在胡航工作太空望远镜科学研究所控制中心(2005)},
{id:3834,'name':'hubble in flight(1997)},
{id:3833,'name':'hubble restored:the telescope's latest look(2002)},
{id:3832,'name':'hubble floating free(2002)},
{id:3831,'name':'hubble against earth's horizon(1997)},
{id:3830,'name':'修复哈勃(1997)},
{'id':3829,'name':'摄制组:拍摄pictu任务研究(1997)},
{id:3828,'name':'hubble与奋进号航天飞机对接(1993)},
{id:3827,'name':'hubble与探索号对接(1999)},
{id:3826,
'name':'giving guidance:replacing the fine guidance sensors(1997)},
{id:3825,'name':'cast-关闭:释放太阳能阵列(1993)},
{'id':3824,
'name':'用旧的:替换高分辨率摄谱仪(1997)},
{'id':3823,
'name':'第二次查看:替换广域和行星相机(1993)}]
~~

收藏中的图片说明:哈勃太空望远镜在一张由4号机组人员拍摄的照片中2009年5月13日,亚特兰蒂斯号航天飞机刚刚用机械臂捕捉到哈勃望远镜,开始了升级和修复哈勃望远镜的任务,
"图像文件":[{"文件大小":4987706,
"文件URL":"https://media.stsci.edu/uploads/image-file/image-attachment/29291/stsci-h-spacecraft24-title.pdf,
"高度":792,
"宽度":612},
{"文件大小":1256136,
"文件URL":"https://media.stsci.edu/uploads/image U file/image U attachment/29290/stsci-h-spacecraft24-title-2400x3000.jpg,
"高度":3000,
"宽度":2400},
{'文件大小':205306,
'文件URL':'https://media.stsci.edu/uploads/image_file/image_attachment/29288/stsci-h-spacecraft24-3072x2x2040.jpg',
'高度':2040,
'宽度':3072},
{'文件大小':18842624,
'文件URL':'https://media.stsci.edu/uploads/image_file/image_attachment/29289/stsci-h-spacecraft24-3072x2040.tif',
"高度":2040,
"宽度":3072},
"任务":"哈勃",
"名称":"抓斗哈勃(2009)"},
{"收藏":"太空船",
"学分":<;a href="http://www.nasa.gov">;nasa<;/a>;",
"说明":"h"2009年5月,亚特兰蒂斯号航天飞机在执行完第4次任务后发布了ubble,它漂浮在太空背景下。航天飞机和望远镜在一周的大部分时间里都是连接在一起的,而宇航员进行了五次太空行走。这次任务预计将是宇航员最后一次访问望远镜,",
‘图像文件’:[{‘文件大小’:2694334,
‘文件URL’:"https://media.stsci.edu/uploads/image文件/image附件/29287/stsci-h-spacecraft25-title.pdf,
‘高度’:792,
‘宽度’:612},
{‘文件_大小:1029841,
"文件URL":"https://media.stsci.edu/uploads/image\u file/image\u attachment/29286/stsci-h-spacecraft25-title-2400x3000.jpg",
"高度":3000,
"宽度":2400},
{"文件大小":5850609,
"文件URL":"https://media.stsci.edu/uploads/image\u file/image\u attachment/29284/stsci-h-spacecraft25-3744x2952.jpg',
"高度":2952,
"宽度":3744},
{"文件大小":33200652,
"文件URL":"https://media.stsci.edu/uploads/image U file/image U attachment/29285/stsci-h-spacecraft25-3744x2952.tif",
"高度":2952,
"宽度":3744}],
任务:'hubble',
名称:'bidding hubble霸王别姬(2009)}]
~~~

返回视频集合

e')[0:3]

[{'集合':'science',
'id':1046,
'image':'https://media.stsci.edu/uploads/video/image\u attachment/1046/thumb\u low stsci-h-mwc\u t420x236.png',
'name':'多波长银河中心'},
{'集合':'news',
'id':1171,
'image':'https://media.stsci.edu/uploads/video/image\u attachment/1171/thumb\u low\u stsci-h-v1839a-t420x236.png',
"名称":"视频放大到abell 370",
"新闻"me':'a'},
{collection':'science',
'id':1141,
'image':'https://media.stsci.edu/uploads/video/image\u attachment/1141/thumb\u low\u arp273-example\u frame-1920x1080.jpg',
'name':'a rose of games:interacting games arp 273'}]
~~

一个或多个视频

~~巨蟒
哈勃望远镜。视频(1046)

{收藏':'科学',
'信用':'视频:<;a href="http://www.nasa.gov/">;nasa<;/a>;,<;a href="http://www.spacescope.or g/">;esa<;/a>;,和
g.bacon(<;a href="http://www.stsci.edu/">;stsci<;/a>;)\r\n\r\n图像信用:<;a href="http://www.nasa.gov/">;nasa<;/a>;,
<;a href="http://www.spacetelescope.org/">;esa<;/a>;,cxc,ssc和<;a href="http://www.stsci.edu/">;stsci<;/a>;",
"图像":"https://media.stsci.edu/uploads/video/image嫒attachmen"T/1046/Low戆u stsci-h-mwc戆u t420x236.png',
"图像视网膜":"https://media.stsci.edu/uploads/video/image戆u attachment/1046/stsci-h-mwc戆u t420x236.png",
"任务":"哈勃",
"名称":"多波长银河中心",
"简短描述":"这个动画揭示了我们的中心。Ilky Way Galaxy,首先是近红外,然后是中红外,然后是X光,然后三者结合在一起。',
"视频文件":[{"文件大小":16428379,
"文件URL":"https://media.stsci.edu/uploads/video戡file/video戡attachment/4694/stsci-h-mwc戡1x-3840x2160.mp4",
"格式":'MPEG-4 4K-UHD',
'MPEG-4 4K-UHD',
'frame-4 4K-UHD',
'frame-4 4K-UHD',
'frame-rate''29.97',
'height':2160,
'width''width':3840},
{{'file-u-size':11292487,
'file-url''file'file'file/video-file/video-attachment/4698/stsci-h-mwc'u2x-3840x2160.mp4.mp4',
'format''format':'mpeg-4 4K-UHD',<利率:29.97,
'height''height':2160,
'width':3840},
{'file'file'u size':18985331,
'file'u url':'https://media.stsci.edu/uploads/video文件/video附件/4693/stsci-h-mwc-h-mwc-h-mwc-1x1920x108108080.mp4',
'format':'mpeg-4(h.264)',
'format':'mpeg-4(h.264)',
'mpeg'mpeg'mpeg-4(h.264)',
'frame'frame'frame'frame'frame':1920年},
{'file'file'u size':11551183,
'file'u-url':'https://media.stsci.edu/uploads/video/u-file/video附件/4697/stsci-h-mwc-u2x-1920x10808x1080.mp4',
'format':'mpeg-4(h.264)',
'frame'u rate':'29.97',
'height':1080,
'width':1920年},
{'file'file'file'u-url':1155118351183183,
'file'file'file'url':http://br/>'file'8,
"文件网址":"https://media.stsci.edu/uploads/video-file/video-u附件/4692/stsci-h-mwc-u1x-1280x720.mp4",
"格式":"mpeg-4(h.264)",
"帧速率":"29.97",
"高度":720,
"宽度":1280},
{"文件大小":5539118,
"高度":720,
"高度":720,
"高度":720,
"宽度":1280},
{‘文件大小":5539118,
"文件网址":https://http://media.stsci.stsci.edu/upload/uploadu/up是的视频文件/视频附件/4696/stsci-h-mwc-u2x-1280x720.mp4",
‘格式’:‘mpeg-4(h.264)’,
‘帧率’29.97’,
‘高度’:720,
‘宽度’:1280},
{‘文件大小’:2908461,
‘文件网址’:'https://media.stsci.edu/uploads/video-file/video附件/4691/stsci-sci-h-mwc-h-mwc-mwc-u2x-1280x720.mp4(h.264)’,
‘帧率’29.97’,
‘高度’:720,‘格式’:‘MPEG-4(H.264)’,
‘帧率’29.97’,
‘高度’:360,
‘宽度’:640},
‘宽度’:360,
‘宽度’:360,
,‘文件大小’:1803284,
‘文件网址’:'https://media.stsci.edu/uploads/视频文件/视频附件/4695/stsci-h-mwc-2x-640x360.mp4’,
‘格式’:29.97,
‘高度’:360,
‘高度’:360,
‘宽度’:640},
‘宽度’:640},:'MPEG-4(高264),
"帧速率":"29.97",
"高度":360,
"宽度":640},
"youtube id":"muq0yl0w0iq"}
~~


包装,希望提高认识,让其他人对空间和天文学兴奋!
BR/>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
image Java:设置iconimage而不使用完整路径   javaant和Eclipse构建   Java标签检查图像   java为什么我的glassfish服务器会重定向到另一台服务器?   java MySQL简单查询错误   java你能告诉我如何在图像视图中显示图像吗   Java驱动程序4.0:是否支持对象映射?   java在通过SourceDataLine播放音频时发出一致的爆裂声   java组织。金特罗普。dcom。常见的JIException:未找到错误代码0xC0000070的消息   运行Dijkstra算法实现时的java IndexOutOfBoundsException   java swing gui闪烁白色错误   java单元测试:我应该使用null还是可选的。返回()中的空()?   javajaxb创建空对象   如何拒绝Java构造函数中的非限定参数?   单元测试的java分类