ahramos
Mechanical
- Nov 12, 2002
- 12
I've got 8760 lines of weather data that I'm trying to manipulate into three different tables. Currently the data is in the following format:
Date Hour Air Temp (°F)
08/01/01 100 60.6
08/01/01 200 58.4
08/01/01 300 57.3
...
07/31/02 2200 64.3
07/31/02 2300 63.3
07/31/02 2400 62.9
I need three different tables in the following format:
01 to 08 Jan Feb Mar...
102 0 0 0
97 0 0 0
92 0 0 0
87 0 0 0
82 0 0 0
...
7 0 0 0
2 0 0 0
09 to 16 Jan Feb Mar...
102 0 0 0
97 0 0 0
92 0 0 0
87 0 0 0
82 0 0 0
...
7 0 0 0
2 0 0 0
16 to 24 Jan Feb Mar...
102 0 0 0
97 0 0 0
92 0 0 0
87 0 0 0
82 0 0 0
...
7 0 0 0
2 0 0 0
I can do it manually, but it's very tedious. The first column of the three tables represent 5°F temperature bins such that 102 => 100 < temperature <= 105 and so forth. The numbers underneath the months represent number of hours within that month that the temperature falls within the 'bin'. The three tables represent the first 8 hours, second 8 hours and final 8 hours of the day. Thanks in advance.
Date Hour Air Temp (°F)
08/01/01 100 60.6
08/01/01 200 58.4
08/01/01 300 57.3
...
07/31/02 2200 64.3
07/31/02 2300 63.3
07/31/02 2400 62.9
I need three different tables in the following format:
01 to 08 Jan Feb Mar...
102 0 0 0
97 0 0 0
92 0 0 0
87 0 0 0
82 0 0 0
...
7 0 0 0
2 0 0 0
09 to 16 Jan Feb Mar...
102 0 0 0
97 0 0 0
92 0 0 0
87 0 0 0
82 0 0 0
...
7 0 0 0
2 0 0 0
16 to 24 Jan Feb Mar...
102 0 0 0
97 0 0 0
92 0 0 0
87 0 0 0
82 0 0 0
...
7 0 0 0
2 0 0 0
I can do it manually, but it's very tedious. The first column of the three tables represent 5°F temperature bins such that 102 => 100 < temperature <= 105 and so forth. The numbers underneath the months represent number of hours within that month that the temperature falls within the 'bin'. The three tables represent the first 8 hours, second 8 hours and final 8 hours of the day. Thanks in advance.