full_like#

astropy.utils.masked.function_helpers.full_like(a, fill_value, dtype=None, order='K', subok=True, shape=None)[源代码]#

返回与给定数组具有相同形状和类型的完整数组。

喜欢 numpy.full_like ,但也设置了一个面具。如果 fill_valuenumpy.ma.masked ,数据将保持未设置状态(即,由创建 numpy.empty_like )。