def test_FileSourceTimecodeType2000Complex(self):
# Create a test file with frequency on the X-axis and time on the
# Y-axis (as one might see from an FFT)
subsize = 200
xdelta = 2.0*math.pi/subsize
ydelta = 0.125
hdr = bluefile.header(2000, 'CF', subsize=subsize)
hdr['xstart'] = -math.pi/2.0
hdr['xdelta'] = xdelta
hdr['xunits'] = 3 # frequency
hdr['ydelta'] = ydelta
hdr['yunits'] = 1 # time
data = numpy.arange(1000, dtype=numpy.complex64).reshape((-1,subsize))
self._check_FileSourceTimecode(hdr, data, subsize*2, ydelta)
评论列表
文章目录