Beispiel #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"))
Beispiel #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)))
Beispiel #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'))
Beispiel #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"))
Beispiel #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'))
Beispiel #6
0
def compute(dm, do):
    """ Computes bias"""
    return MV.float(MV.average(MV.subtract(dm, do)))
def compute(dm,do):
    """ Computes bias"""
    return MV.float(MV.average(MV.subtract(dm,do)))