def maskinfo(self):
"""
Returns a description of the masked points and available properties of them.
Note that the output format can be directly used as a skiplist.
"""
cps = self.commonproperties()
lines = []
maskindices = np.argwhere(self.mask == False)
for maskindex in maskindices:
comment = ", ".join(["%s : %s" % (cp, self.properties[maskindex][cp]) for cp in cps])
txt = "%.1f %s" % (self.jds[maskindex], comment)
lines.append(txt)
txt = "\n".join(lines)
txt = "# %i Masked points of %s :\n" % (np.sum(self.mask == False), str(self)) + txt
return txt
评论列表
文章目录