def makeHeader(self):
wcscols = self.cols[2:]
newhdr = fits.Header()
for c in wcscols:
newhdr[c] = float(self.__getattribute__(c)) if type(self.__getattribute__(c)) == Decimal else self.__getattribute__(c)
return newhdr
评论列表
文章目录