def regrid_h2(nh3_image,h2_image):
# Edit to write out regridded image - glue won't work if files not on same grid
h2fits = fits.open(h2_image)
nh3_hdr = fits.getheader(nh3_image)
new_h2 = FITS_tools.hcongrid.hcongrid(h2fits[0].data,h2fits[0].header,nh3_hdr)
new_h2_hdu = fits.PrimaryHDU(new_h2,nh3_hdr)
return new_h2_hdu
GAS_Herschel_analysis.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录