Пример #1
0
def compute(d):
    """Computes bias"""
    if d is None:  # just want the doc
        return {
            "Name": "Mean",
            "Abstract": "Area Mean (area weighted)",
            "Contact": "*****@*****.**",
        }
    return MV2.float(cdutil.averager(d, axis="xy", weights="weighted"))
Пример #2
0
def compute(dm, do):
    """ Computes bias"""
    if dm is None and do is None:  # just want the doc
        return {
            "Name": "Bias",
            "Abstract": "Compute Full Average of Model - Observation",
            "Contact": "Peter Gleckler <*****@*****.**>",
        }
    return MV2.float(MV2.average(MV2.subtract(dm, do)))
Пример #3
0
def compute(d):
    """ Computes bias"""
    if d is None:  # just want the doc
        return {
            "Name": "Mean",
            "Abstract": "Area Mean (area weighted)",
            "Contact": "*****@*****.**",
        }
    return MV2.float(cdutil.averager(d, axis='xy', weights='weighted'))
Пример #4
0
def compute(dm, do):
    """Computes bias"""
    if dm is None and do is None:  # just want the doc
        return {
            "Name": "Bias",
            "Abstract": "Compute Full Average of Model - Observation",
            "Contact": "*****@*****.**",
        }
    dif = MV2.subtract(dm, do)
    return MV2.float(cdutil.averager(dif, axis="xyt", weights="weighted"))
Пример #5
0
def compute(dm, do):
    """ Computes bias"""
    if dm is None and do is None:  # just want the doc
        return {
            "Name": "Bias",
            "Abstract": "Compute Full Average of Model - Observation",
            "Contact": "*****@*****.**",
        }
    dif = MV2.subtract(dm, do)
    return MV2.float(cdutil.averager(dif, axis='xyt', weights='weighted'))
Пример #6
0
def compute(dm, do):
    """ Computes bias"""
    return MV.float(MV.average(MV.subtract(dm, do)))
Пример #7
0
def compute(dm,do):
    """ Computes bias"""
    return MV.float(MV.average(MV.subtract(dm,do)))