def simpleMask(config):
#params = ugali.utils.(config, kwargs)
roi = ugali.observation.roi.ROI(config)
# De-project the bin centers to get magnitude depths
mesh_x, mesh_y = numpy.meshgrid(roi.centers_x, roi.centers_y)
r = numpy.sqrt(mesh_x**2 + mesh_y**2) # Think about x, y conventions here
#z = (0. * (r > 1.)) + (21. * (r < 1.))
#z = 21. - r
#z = (21. - r) * (mesh_x > 0.) * (mesh_y < 0.)
z = (21. - r) * numpy.logical_or(mesh_x > 0., mesh_y > 0.)
return MaskBand(z, roi)
############################################################
评论列表
文章目录