//string[] hourlydatafields = { "dbTemp", "rHumid", "wDir", "wSpeed", "diffuseHorizRad", "normDirectRad", "skyCover", "liquidPrecipDepth" }; //string[] monthlydatafields = { "RAINFALL", "HUMIDITY_0900", "HUMIDITY_1500", "TEMPERATURE", "diffuseHorizRad", "TEMP_AVEMAX", "TEMP_AVEMIN", // "TEMP_STDDEV","DAYLIGHTHOURS", "IRRADIATION", "DEGREEHOURS_HEAT", "DEGREEHOURS_COOL", "DEGREEHOURS_SOLAR", "WINDSPEED_0900", "WINDSPEED_1500", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27"}; //note 28 possible montly averages in a wea public WEAReader(string[] files) { this.weaFiles = files; foreach (string file in files) { if (StringTools.getExt(file) == ".wea") { readWEAFile(file); } //otherwise ignore } }
public EPWReader(string[] files)//from a folder { this.epwFiles = files; foreach (string file in files) { if (StringTools.getExt(file) == ".epw") { StreamReader epw = new StreamReader(file); readEPWFile(epw); } //otherwise ignore } }