Hello. My file looks like this:
2447893 0 27 16
2447893 3600 25 15
2447893 7200 24 16
2447893 10800 24 16
2447893 14400 22 15
2447893 18000 21 13
2447893 21600 20 13
2447893 25200 17 12
2447893 28800 16 12
2447893 32400 13 9
2447893 36000 12 8
2447893 39600 12 8
2447893 43200 12 8
2447893 46800 11 7
2447893 50400 9 5
2447893 54000 14 9
2447893 57600 21 16
2447893 61200 27 17
2447893 64800 30 17
2447893 68400 34 17
2447893 72000 37 17
2447893 75600 39 18
2447893 79200 38 18
2447893 82800 37 18
2447894 0 34 19
2447894 3600 32 19
2447894 7200 33 20
2447894 10800 32 19
2447894 14400 32 19
2447894 18000 30 18
2447894 21600 25 18
2447894 25200 26 18
2447894 28800 30 20
2447894 32400 29 20
2447894 36000 30 21
2447894 39600 31 22
2447894 43200 27 20
2447894 46800 25 19
2447894 50400 27 21
2447894 54000 32 22
2447894 57600 38 24
2447894 61200 42 25
2447894 64800 45 26
2447894 68400 49 27
2447894 72000 50 28
2447894 75600 51 28
2447894 79200 51 28
2447894 82800 48 28
Where the first column is the Julian Day, the second is the time the temperature was recorded (in seconds), and the last two columns are the temperature and dew point, respectively. I need a program that can read in the temperature values for each day and determine the high and low. I cannot assume the number of observations per day. This is also quite a large file, consisting of 200,000 lines looking exactly like this.
I've tried a number of ways, but there is always something wrong with the high and low. I have already read the values using a two dimensional array, I just can't determine the high and low.
2447893 0 27 16
2447893 3600 25 15
2447893 7200 24 16
2447893 10800 24 16
2447893 14400 22 15
2447893 18000 21 13
2447893 21600 20 13
2447893 25200 17 12
2447893 28800 16 12
2447893 32400 13 9
2447893 36000 12 8
2447893 39600 12 8
2447893 43200 12 8
2447893 46800 11 7
2447893 50400 9 5
2447893 54000 14 9
2447893 57600 21 16
2447893 61200 27 17
2447893 64800 30 17
2447893 68400 34 17
2447893 72000 37 17
2447893 75600 39 18
2447893 79200 38 18
2447893 82800 37 18
2447894 0 34 19
2447894 3600 32 19
2447894 7200 33 20
2447894 10800 32 19
2447894 14400 32 19
2447894 18000 30 18
2447894 21600 25 18
2447894 25200 26 18
2447894 28800 30 20
2447894 32400 29 20
2447894 36000 30 21
2447894 39600 31 22
2447894 43200 27 20
2447894 46800 25 19
2447894 50400 27 21
2447894 54000 32 22
2447894 57600 38 24
2447894 61200 42 25
2447894 64800 45 26
2447894 68400 49 27
2447894 72000 50 28
2447894 75600 51 28
2447894 79200 51 28
2447894 82800 48 28
Where the first column is the Julian Day, the second is the time the temperature was recorded (in seconds), and the last two columns are the temperature and dew point, respectively. I need a program that can read in the temperature values for each day and determine the high and low. I cannot assume the number of observations per day. This is also quite a large file, consisting of 200,000 lines looking exactly like this.
I've tried a number of ways, but there is always something wrong with the high and low. I have already read the values using a two dimensional array, I just can't determine the high and low.