def interpolate_apertures(self, aperture_centers, aperture_means):
"""
This function ...
:param aperture_centers:
:param aperture_means:
:return:
"""
# Inform the user
log.info("Interpolating between the mean values of each aperture to fill the sky frame ...")
x_values = np.array([center.x for center in aperture_centers])
y_values = np.array([center.y for center in aperture_centers])
x_ticks = np.arange(0, self.frame.xsize, 1)
y_ticks = np.arange(0, self.frame.ysize, 1)
z_grid = mlab.griddata(x_values, y_values, aperture_means, x_ticks, y_ticks)
# Set the sky frame
self.sky = Frame(z_grid)
# -----------------------------------------------------------------
评论列表
文章目录