Hi,
I need help in constructing a Fortran program that will rebin the following data. Here is what I need to do:
-I need to construct the data so that for every 5 bins(0-.5,.5-1,1-1.5, etc.) the total sum of the counts for the 5 bins are displayed.
-Also the average error, which equals (SQRT((error_bin1^2)+(error_bin2^2)...)) needs to be displayed for every 5 bins.
-So, basically I am trying to present the data in a more presentable form, but still in the same table format.
I appreciate your help!
Bin Counts Error
0.0 0.1 0.000000e+00 1.246307e+03
0.1 0.2 0.000000e+00 1.384062e+03
0.2 0.3 0.000000e+00 7.293359e+02
0.3 0.4 0.000000e+00 4.347419e+02
0.4 0.5 0.000000e+00 2.886545e+02
0.5 0.6 0.000000e+00 2.121605e+02
0.6 0.7 0.000000e+00 1.780368e+02
0.7 0.8 1.860239e+03 1.260624e+03
0.8 0.9 4.459698e+04 8.547545e+04
0.9 1.0 2.186709e+03 4.667829e+03
1.0 1.1 1.435697e+02 8.899864e+02
1.1 1.2 -2.663352e+02 5.854734e+02
1.2 1.3 3.914954e+02 3.700430e+02
1.3 1.4 4.836762e+02 3.082303e+02
1.4 1.5 2.310999e+02 2.661533e+02
1.5 1.6 3.931144e+01 1.878104e+02
1.6 1.7 2.174683e+02 1.717450e+02
1.7 1.8 5.201125e+01 1.321500e+02
1.8 1.9 2.651151e+02 1.599340e+02
1.9 2.0 4.399519e+01 1.297579e+02
2.0 2.1 2.419880e+02 1.585462e+02
2.1 2.2 9.620107e+01 1.061600e+02
2.2 2.3 9.430807e+01 1.349242e+02
2.3 2.4 -4.409645e+01 1.153539e+02
2.4 2.5 6.508822e+01 7.076512e+01
2.5 2.6 -2.414544e+02 1.244045e+02
2.6 2.7 5.022138e+01 6.547811e+01
2.7 2.8 -4.759686e+01 8.690866e+01
2.8 2.9 -2.192769e+02 9.773648e+01
2.9 3.0 -3.211433e+01 7.493255e+01
3.0 3.1 1.774129e+02 8.275328e+01
3.1 3.2 9.261980e+01 1.052127e+02
3.2 3.3 1.125748e+02 1.160030e+02
3.3 3.4 1.338158e+02 7.524153e+01
3.4 3.5 1.175320e+02 6.544840e+01
3.5 3.6 1.007442e+02 7.027041e+01
3.6 3.7 8.079117e+00 4.768503e+01
3.7 3.8 2.831477e+01 5.651733e+01
3.8 3.9 6.895191e+01 6.264614e+01
3.9 4.0 6.547348e+01 5.151797e+01
4.0 4.1 -2.703517e+01 3.432813e+01
4.1 4.2 1.818555e+01 3.942893e+01
4.2 4.3 -8.891703e+00 6.226578e+01
4.3 4.4 2.875568e+01 4.892077e+01
4.4 4.5 -1.410340e+01 5.061625e+01
4.5 4.6 -9.170539e+01 6.407574e+01
4.6 4.7 7.644147e+01 4.559211e+01
4.7 4.8 8.188116e+01 4.467571e+01
4.8 4.9 8.369775e+01 4.402335e+01
4.9 5.0 4.915925e+01 3.741202e+01
5.0 5.1 1.232162e+01 4.187785e+01
5.1 5.2 -2.983277e+01 4.723371e+01
5.2 5.3 2.215924e+01 4.793545e+01
5.3 5.4 3.477517e+01 4.777378e+01
5.4 5.5 1.354970e+01 3.513870e+01
5.5 5.6 1.877098e+00 3.377090e+01
5.6 5.7 -4.757156e+01 3.816899e+01
5.7 5.8 -3.269796e+01 4.006648e+01
5.8 5.9 1.258449e+01 4.790275e+01
5.9 6.0 1.808871e+01 4.483938e+01
6.0 6.1 4.012610e+01 3.483579e+01
(there is more data, but this should suffice)
I need help in constructing a Fortran program that will rebin the following data. Here is what I need to do:
-I need to construct the data so that for every 5 bins(0-.5,.5-1,1-1.5, etc.) the total sum of the counts for the 5 bins are displayed.
-Also the average error, which equals (SQRT((error_bin1^2)+(error_bin2^2)...)) needs to be displayed for every 5 bins.
-So, basically I am trying to present the data in a more presentable form, but still in the same table format.
I appreciate your help!
Bin Counts Error
0.0 0.1 0.000000e+00 1.246307e+03
0.1 0.2 0.000000e+00 1.384062e+03
0.2 0.3 0.000000e+00 7.293359e+02
0.3 0.4 0.000000e+00 4.347419e+02
0.4 0.5 0.000000e+00 2.886545e+02
0.5 0.6 0.000000e+00 2.121605e+02
0.6 0.7 0.000000e+00 1.780368e+02
0.7 0.8 1.860239e+03 1.260624e+03
0.8 0.9 4.459698e+04 8.547545e+04
0.9 1.0 2.186709e+03 4.667829e+03
1.0 1.1 1.435697e+02 8.899864e+02
1.1 1.2 -2.663352e+02 5.854734e+02
1.2 1.3 3.914954e+02 3.700430e+02
1.3 1.4 4.836762e+02 3.082303e+02
1.4 1.5 2.310999e+02 2.661533e+02
1.5 1.6 3.931144e+01 1.878104e+02
1.6 1.7 2.174683e+02 1.717450e+02
1.7 1.8 5.201125e+01 1.321500e+02
1.8 1.9 2.651151e+02 1.599340e+02
1.9 2.0 4.399519e+01 1.297579e+02
2.0 2.1 2.419880e+02 1.585462e+02
2.1 2.2 9.620107e+01 1.061600e+02
2.2 2.3 9.430807e+01 1.349242e+02
2.3 2.4 -4.409645e+01 1.153539e+02
2.4 2.5 6.508822e+01 7.076512e+01
2.5 2.6 -2.414544e+02 1.244045e+02
2.6 2.7 5.022138e+01 6.547811e+01
2.7 2.8 -4.759686e+01 8.690866e+01
2.8 2.9 -2.192769e+02 9.773648e+01
2.9 3.0 -3.211433e+01 7.493255e+01
3.0 3.1 1.774129e+02 8.275328e+01
3.1 3.2 9.261980e+01 1.052127e+02
3.2 3.3 1.125748e+02 1.160030e+02
3.3 3.4 1.338158e+02 7.524153e+01
3.4 3.5 1.175320e+02 6.544840e+01
3.5 3.6 1.007442e+02 7.027041e+01
3.6 3.7 8.079117e+00 4.768503e+01
3.7 3.8 2.831477e+01 5.651733e+01
3.8 3.9 6.895191e+01 6.264614e+01
3.9 4.0 6.547348e+01 5.151797e+01
4.0 4.1 -2.703517e+01 3.432813e+01
4.1 4.2 1.818555e+01 3.942893e+01
4.2 4.3 -8.891703e+00 6.226578e+01
4.3 4.4 2.875568e+01 4.892077e+01
4.4 4.5 -1.410340e+01 5.061625e+01
4.5 4.6 -9.170539e+01 6.407574e+01
4.6 4.7 7.644147e+01 4.559211e+01
4.7 4.8 8.188116e+01 4.467571e+01
4.8 4.9 8.369775e+01 4.402335e+01
4.9 5.0 4.915925e+01 3.741202e+01
5.0 5.1 1.232162e+01 4.187785e+01
5.1 5.2 -2.983277e+01 4.723371e+01
5.2 5.3 2.215924e+01 4.793545e+01
5.3 5.4 3.477517e+01 4.777378e+01
5.4 5.5 1.354970e+01 3.513870e+01
5.5 5.6 1.877098e+00 3.377090e+01
5.6 5.7 -4.757156e+01 3.816899e+01
5.7 5.8 -3.269796e+01 4.006648e+01
5.8 5.9 1.258449e+01 4.790275e+01
5.9 6.0 1.808871e+01 4.483938e+01
6.0 6.1 4.012610e+01 3.483579e+01
(there is more data, but this should suffice)