Prev: ifort interprets RECL=1 as 4-BYTE units
Next: Manipulating Arrays of Same Number of Elements but with Different Dims
From: Fortran_follower on 18 Feb 2010 10:28 1 Oct 2001 0 42 54 -41.646074 145.901599 463.240034 1 Oct 2001 0 42 55 -41.709808 145.902872 463.242092 1 Oct 2001 0 42 56 -41.773542 145.904157 463.244112 1 Oct 2001 0 42 57 -41.837276 145.905452 463.246094 1 Oct 2001 0 42 58 -41.901010 145.906758 463.248037 1 Oct 2001 0 42 59 -41.964742 145.908075 463.249943 1 Oct 2001 0 43 0 -42.028475 145.909403 463.251810 1 Oct 2001 0 43 1 -42.092143 145.910741 463.253637 1 Oct 2001 1 3 23 -59.581230 -46.330899 443.193713 1 Oct 2001 1 3 24 -59.517300 -46.323166 443.165155 1 Oct 2001 1 3 25 -59.453369 -46.315479 443.136587 1 Oct 2001 1 3 26 -59.389436 -46.307836 443.108010 1 Oct 2001 1 3 27 -59.325502 -46.300238 443.079424 1 Oct 2001 1 3 28 -59.261565 -46.292684 443.050827 1 Oct 2001 1 3 29 -59.197627 -46.285174 443.022221 Dear friends, In the above shown data, column 4 represents, hour. I want to calculate the hourly mean or 8,9 & 10th columns, from the above data file. What I know is, read 2 lines at a time and compare hour-value, whether it reached next hour or not. Can anyone please tell me is there any other simple way to do the same. I know as in Matlab, we load complete file into an array and can play with the columns & rows as required. Is there anything similar in fortran too..!! Thanking you. Praveen. |