def actualSetup(self, sky_pol_frame='stokesIQUV', data_pol_frame='linear', f=None):
if f is None:
f = [100.0, 50.0, -10.0, 40.0]
f = numpy.array(f)
self.flux = numpy.array([f, 0.8 * f, 0.6 * f])
# The phase centre is absolute and the component is specified relative (for now).
# This means that the component should end up at the position phasecentre+compredirection
self.phasecentre = SkyCoord(ra=+180.0 * u.deg, dec=-35.0 * u.deg, frame='icrs', equinox='J2000')
self.compabsdirection = SkyCoord(ra=+181.0 * u.deg, dec=-35.0 * u.deg, frame='icrs', equinox='J2000')
self.comp = Skycomponent(direction=self.compabsdirection, frequency=self.frequency, flux=self.flux,
polarisation_frame=PolarisationFrame(sky_pol_frame))
self.vis = create_blockvisibility(self.lowcore, self.times, self.frequency, phasecentre=self.phasecentre,
channel_bandwidth=self.channel_bandwidth, weight=1.0,
polarisation_frame=PolarisationFrame(data_pol_frame))
self.vis = predict_skycomponent_blockvisibility(self.vis, self.comp)
test_calibration_solvers.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录