Ejemplo n.º 1
0
    def run_model(self):

        if self.filled:
            outputs = C.wbm(self.pr, self.tas, self.ps, self.ca, self.rsds)

        self.npp   = outputs[0]
        self.photo = outputs[1]
        self.aresp = outputs[2]
        self.rcm   = outputs[3]
        self.tsoil = outputs[4]
        self.wsoil = outputs[5]
        self.runom = outputs[6]
        self.evapm = outputs[7]
        self.emaxm = outputs[8]
        self.lai   = outputs[9]
        self.c**t  = outputs[10]
        self.csoil = outputs[11]
        self.hresp = outputs[12]

        self.complete = True
Ejemplo n.º 2
0
    def run_model(self):

        if self.filled and not self.complete:
            outputs = C.wbm(self.pr, self.tas, self.ps, self.ca, self.rsds)

            self.npp   = outputs[0]
            self.photo = outputs[1]
            self.aresp = outputs[2]
            self.rcm   = outputs[3]
            self.tsoil = outputs[4]
            self.wsoil = outputs[5]
            self.runom = outputs[6]
            self.evapm = outputs[7]
            self.emaxm = outputs[8]
            self.lai   = outputs[9]
            self.c**t  = outputs[10]
            self.csoil = outputs[11]
            self.hresp = outputs[12]
            self.complete = True
        else:
            print('the gridcell %s object is either not filled or already completed' % self.name)