Kevin12151011的个人博客分享 http://blog.sciencenet.cn/u/Kevin12151011


  • 南京大学,天文学系,硕士在读

    • 数理科学->天文学->恒星与星际物质

    扫一扫,分享此博客主页
你需要登录后才可以留言 登录 | 注册


统计信息

已有 97302 人来访过

Python随机数生成中的“陷阱” 2021-03-07
原则上,只要把随机数种子固定,随机数序列就可以复现。但是由于python中有些命令本身不可复现,与之相关的随机数生成过程也可能改变随机数生成过程,从而使得 ...
(1758)次阅读|(0)个评论
reproject vs montage_wrapper 2021-02-21
reproject can accept header objects directly for reporjection, while mw needs txt files converted from headers. reproject.reproject_interp can h ...
(1158)次阅读|(0)个评论
Recall historical commands in the terminal 2020-01-10
In csh: bindkey "^[[A" history-search-backward bindkey "^[[B" history-search-forward write into ~/.cshrc In bash: "e[A": ...
(1216)次阅读|(0)个评论
坑爹的复制语法 2019-08-11
尝试以下程序 a, b = ]*2 a =2 发现b ==2. 这个命令的意思是给“ ”贴上两个标签a, b,既然 变了,标签a, b的内容都跟着变了。 如果是 a, b = ...
(1492)次阅读|(0)个评论
Writing BZERO & BSCALE cards to fits headers using astropy 2019-07-30
Found a strange thing that the BZERO & BSCALE cards can't be written to the header by the code below hdu = fits.open(fits_file) h ...
(1588)次阅读|(0)个评论
Python格式化字符串的两种形式 2018-10-07
1. %格式,如 ‘%.2f’%(a) 2. .format格式,如 '{:.2f}.format(a)' 其中.format更强大些。比如输出给定精度 precision 的浮点数a,可写为 ' ...
(2041)次阅读|(0)个评论
Python faster [不定期更新] 2018-09-13
 1. 大量计算时不用astropy.units,使用纯数,时间减少1-2个数量级。
(1517)次阅读|(0)个评论
Planck数据分析 2018-09-12
 下载了Planck single frequency fits, 发现投影方式是healpix。我需要转成通常投影的2D fits,可以用python包reproject: from reproject import reproj ...
(2023)次阅读|(0)个评论

查看更多

    Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

    GMT+8, 2024-4-23 19:03

    Powered by ScienceNet.cn

    Copyright © 2007- 中国科学报社

    返回顶部