I have one month for you to look at the results in the attachment
Currently this is the timing results for what I have so far... reading the monthly data takes 5.5 seconds, calculating the 3 results takes a sip of coffee, and another sip to write them out.
Let me know if the results are correct, I just want to make sure that I calculated the max, avg and min on the correct dimension. I calculated the min, mean and max for each day for the whole area below the time results...
Timing function for... read_folder
['mx19610101.txt', 'mx19610102.txt', 'mx19610103.txt', 'mx19610104.txt', 'mx19610105.txt', 'mx19610106.txt', 'mx19610107.txt', 'mx19610108.txt', 'mx19610109.txt', 'mx19610110.txt', 'mx19610111.txt', 'mx19610112.txt', 'mx19610113.txt', 'mx19610114.txt', 'mx19610115.txt', 'mx19610116.txt', 'mx19610117.txt', 'mx19610118.txt', 'mx19610119.txt', 'mx19610120.txt', 'mx19610121.txt', 'mx19610122.txt', 'mx19610123.txt', 'mx19610124.txt', 'mx19610125.txt', 'mx19610126.txt', 'mx19610127.txt', 'mx19610128.txt', 'mx19610129.txt', 'mx19610130.txt', 'mx19610131.txt']
Results for... read_folder
time taken ...5.534821477e+00 sec.
Timing function for... calc_stats
Results for... calc_stats
time taken ...5.698581223e-02 sec.
Timing function for... write_file
Results for... write_file
time taken ...2.026189804e-01 sec.
>>> s.shape
(691, 886, 31)
>>> s.ndim
3
>>> for i in range(31):
... print("{:>6.3f} {:>6.3f} {:>6.3f}".format(s.min(), s.mean(), s.max()))
...
25.921 30.192 33.996
25.933 30.194 34.139
25.936 30.196 34.311
25.575 30.198 34.483
25.790 30.201 34.655
25.970 30.205 34.776
25.990 30.209 34.897
26.014 30.212 34.986
26.032 30.217 35.077
25.968 30.222 35.137
25.789 30.227 35.196
25.618 30.232 35.236
25.464 30.238 35.285
25.338 30.243 35.313
25.242 30.250 35.342
25.168 30.258 35.370
25.103 30.266 35.379
25.057 30.275 35.396
25.012 30.285 35.394
24.978 30.295 35.391
24.945 30.305 35.378
24.921 30.315 35.364
24.898 30.326 35.318
24.884 30.339 35.191
24.871 30.349 35.017
24.860 30.360 34.833
24.849 30.371 34.661
24.838 30.383 34.519
24.832 30.392 34.396
24.810 30.407 34.308
24.779 30.421 34.307
>>>
PS, can I get permission to use some of this data for writing and teaching purposes?