public static Temp averageTempDays(WeatherData wd1) { // liczenie sredniej		
			//Console.WriteLine ("metoda averageTempDays()");

			Temp temp1 = new Temp();

			//day
			foreach (Days d in wd1.list)
				temp1.day += d.temp.day;
			temp1.day /= wd1.list.Length;
			//Console.WriteLine ("avg day: " + temp1.day);

			//min
			foreach (Days d in wd1.list)
				temp1.min += d.temp.min;
			temp1.min /= wd1.list.Length;
			//Console.WriteLine ("avg min: " + temp1.min);

			//max
			foreach (Days d in wd1.list)
				temp1.max += d.temp.max;
			temp1.max /= wd1.list.Length;
			//Console.WriteLine ("avg max: " + temp1.max);

			//night
			foreach (Days d in wd1.list)
				temp1.night += d.temp.night;
			temp1.night /= wd1.list.Length;
			//Console.WriteLine ("avg night: " + temp1.night);

			//eve
			foreach (Days d in wd1.list)
				temp1.eve += d.temp.eve;
			temp1.eve /= wd1.list.Length;
			//Console.WriteLine ("avg eve: " + temp1.eve);

			//morn
			foreach (Days d in wd1.list)
				temp1.morn += d.temp.morn;
			temp1.morn /= wd1.list.Length;
			//Console.WriteLine ("avg morn: " + temp1.morn);

			//Console.WriteLine ("koniec metody averageTempDays()");
			return temp1;
		}
		/////////// metody pomocnicze

		public static double averageDelta(Temp tempAvg) {
			//Console.WriteLine ("metoda averageDelta()");
			//Console.WriteLine ("averageDelta: " + (tempAvg.max - tempAvg.min));
			//Console.WriteLine ("koniec metody averageDelta()");
			return tempAvg.max - tempAvg.min;
		}
		public static Temp convertKelvinToCelsius(Temp temp) {
			//Console.WriteLine ("metoda convertKelvinToCelsius()");
			Temp temp1 = new Temp ();

			temp1.day = temp.day - 273.15;
			temp1.min = temp.min - 273.15;
			temp1.max = temp.max - 273.15;
			temp1.night = temp.night - 273.15;
			temp1.eve = temp.eve - 273.15;
			temp1.morn = temp.morn - 273.15;
		
			//Console.WriteLine ("koniec metody convertKelvinToCelsius()");
			return temp1;
		}