def writeForcings(self, prec, tmax, tmin, wind, lai=None):
        if not os.path.exists(self.model_path + '/forcings'):
            os.mkdir(self.model_path + '/forcings')
        ndays = (date(self.endyear, self.endmonth, self.endday) -
                 date(self.startyear, self.startmonth, self.startday)).days + 1
        assert len(prec) == len(self.lat) * ndays and len(tmax) == len(self.lat) * ndays and len(
            tmin) == len(self.lat) * ndays and len(wind) == len(self.lat) * ndays
        cgid = None
        fout = None
        for i in range(len(prec)):
            gid = prec[i][0]
            if cgid is None or gid != cgid:
                if cgid is not None:
                    fout.close()
                cgid = gid
                filename = "data_{0:.{2}f}_{1:.{2}f}".format(
                    self.gid[gid][0], self.gid[gid][1], self.grid_decimal)
                fout = open(
                    "{0}/forcings/{1}".format(self.model_path, filename), 'w')
                print "writing " + filename
                fout.write("{0:f} {1:.2f} {2:.2f} {3:.1f}\n".format(
                    prec[i][2], tmax[i][2], tmin[i][2], wind[i][2]))
            else:
                fout.write("{0:f} {1:.2f} {2:.2f} {3:.1f}\n".format(
                    prec[i][2], tmax[i][2], tmin[i][2], wind[i][2]))
Calculates average load of all instances.
dataset/ETHPy150Open nasa/RHEAS/src/vic/vic.py/VIC.writeForcings--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/solutions-load-balanced-gaming-server-on-google-compute-engine/load_info.py/LoadInfo.GetAverageLoad