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"))
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)))
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'))
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"))
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'))
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)))