def read_fits_header(fits_file, ext=0):
'''
Shortcut function to just read the header of the FITS file and return it.
'''
hdulist = pyfits.open(fits_file)
img_header = hdulist[ext].header
hdulist.close()
return img_header
评论列表
文章目录