reproject can accept header objects directly for reporjection, while mw needs txt files converted from headers. reproject.reproject_interp can handle PPV cubes properly, while mw.reproject_cube can’t re-project correctly along the velocity axis. No significant differences in the o ...
In csh: bindkey ^[[A history-search-backward bindkey ^[[B history-search-forward write into ~/.cshrc In bash: e[A: history-search-backward e[B: history-search-forward set show-all-if ambiguous on set completion-ignore-case on write into ~/.inputrc ...
Found a strange thing that theBZERO BSCALE cards can't be written to the header by the code below hdu = fits.open(fits_file) h = hdu .header img = hdu .data h = 0. h = 1. fits.writeto(fits_file,img,h) This will cause problems when using getsources, since it ...
下载了Planck single frequency fits, 发现投影方式是healpix。我需要转成通常投影的2D fits,可以用python包reproject: from reproject import reproject_from_healpix 也可以安装healpix相关软件,详见 https://healpix.sourceforge.io/ 。另外,python包healpy对处理healpix fits也有些用处。