这是我第一次处理黑体辐射实验的光谱,我正在使用Python,遇到了一些麻烦……我有两个峰值和不均匀的背景噪声的光谱,我想要归一化,我尝试使用specutils 1.1“连续拟合”(文档在这里:https://specutils.readthedocs.io/en/stable/fitting.html#continuum-fitting ) 我的实现是这样的: import matplotlib.pyplotas plt import numpy as np
from astropy.modeling im
我是SpecUtils的新用户,我只是尝试从FITS文件中读取光谱数据并绘制频谱,就像在的第一页上一样。我的代码与SpecUtils的第一页相同,如下所示:from astropy import units as u# The spectrum is in the second HDU of this file.f.close()
from specutilsT