(f)
return wrapper
Wraps a function in order to convert the input map from
    a masked to a regular numpy array, and convert back the
    output from a regular array to a masked array
Wraps a function in order to convert the input map from
    a masked to a regular numpy array, and convert back the
    output from a regular array to a masked array
Wraps a function in order to convert the input map from a masked to a regular numpy array and convert back the output from a regular array to a masked array
def accept_ma(f):
    """Wraps a function in order to convert the input map from
    a masked to a regular numpy array, and convert back the
    output from a regular array to a masked array"""

    @wraps(f)
    def wrapper(map_in, *args, **kwds):
        return_ma = is_ma(map_in)
        m = ma_to_array(map_in)
        out = f(m, *args, **kwds)
        return ma(out) if return_ma else out

    return wrapper
def accept_ma ( f ) : @ wraps ( f ) def wrapper ( map_in , * args , * * kwds ) : return_ma = is_ma ( map_in ) m = ma_to_array ( map_in ) out = f ( m , * args , * * kwds ) return ma ( out ) if return_ma else out return wrapper