def write_epw(self):
epw_prec = self.epw_precision  <EOL>for iJ in range(len(self.UCMData)):<EOL><INDENT>self.epwinput[iJ+self.simTime.timeInitial-<NUM_LIT:8>][<NUM_LIT:6>] = "<STR_LIT>".format(<EOL>self.UCMData[iJ].canTemp - <NUM_LIT>, epw_prec)  <EOL>self.epwinput[iJ+self.simTime.timeInitial -<EOL><NUM_LIT:8>][<NUM_LIT:7>] = "<STR_LIT>".format(self.UCMData[iJ].Tdp, epw_prec)<EOL>self.epwinput[iJ+self.simTime.timeInitial -<EOL><NUM_LIT:8>][<NUM_LIT:8>] = "<STR_LIT>".format(self.UCMData[iJ].canRHum, epw_prec)<EOL>self.epwinput[iJ+self.simTime.timeInitial-<NUM_LIT:8>][<NUM_LIT>] = "<STR_LIT>".format(<EOL>self.WeatherData[iJ].wind, epw_prec)        <EOL><DEDENT>epw_new_id = open(self.newPathName, "<STR_LIT:w>")<EOL>for i in range(<NUM_LIT:8>):<EOL><INDENT>new_epw_line = '<STR_LIT>'.format(reduce(lambda x, y: x+"<STR_LIT:U+002C>"+y, self._header[i]))<EOL>epw_new_id.write(new_epw_line)<EOL><DEDENT>for i in range(len(self.epwinput)):<EOL><INDENT>printme = "<STR_LIT>"<EOL>for ei in range(<NUM_LIT>):<EOL><INDENT>printme += "<STR_LIT:{}>".format(self.epwinput[i][ei]) + '<STR_LIT:U+002C>'<EOL><DEDENT>printme = printme + "<STR_LIT:{}>".format(self.epwinput[i][ei])<EOL>new_epw_line = "<STR_LIT>".format(printme)<EOL>epw_new_id.write(new_epw_line)<EOL><DEDENT>epw_new_id.close()<EOL>print("<STR_LIT>".format(<EOL>self.destinationFileName, self.destinationDir))<EOL>
Section 8 - Writing new EPW file