fill_lat_lng_nodata.py
def _mask_valid_op(base_array, nodata):
    """Convert valid to True nodata/invalid to False."""
    if nodata is not None:
        valid_mask = ~numpy.isclose(base_array, nodata)
    else:
        valid_mask = numpy.ones(base_array.shape, dtype=numpy.bool)
    valid_mask &= numpy.isfinite(base_array)
    return valid_mask
Convert valid to True nodata/invalid to False.
Convert valid to True nodata/invalid to False.
Convert valid to True nodata / invalid to False .
def _mask_valid_op(base_array, nodata):
    if nodata is not None:
        valid_mask = ~numpy.isclose(base_array, nodata)
    else:
        valid_mask = numpy.ones(base_array.shape, dtype=numpy.bool)
    valid_mask &= numpy.isfinite(base_array)
    return valid_mask
def _mask_valid_op ( base_array , nodata ) : if nodata is not None : valid_mask = ~ numpy . isclose ( base_array , nodata ) else : valid_mask = numpy . ones ( base_array . shape , dtype = numpy . bool ) valid_mask &= numpy . isfinite ( base_array ) return valid_mask
Convert valid to True nodata/invalid to False.
Convert valid to True nodata / invalid to False .
"""Convert valid to True nodata/invalid to False."""
base_array
nodata