You must calculate such a model by reading the moisture and temperature on the surface of the north and south during a
years. These are located in two files: North.asc and South.asc. The files have 5 columns: Kolonne1: Time, Kolonne2:
TempSurface, Kolonne3: RHsurface, Kolonne4: Temp0.00025m, Kolonne5: RH0.00025m, Kolonne6:
Average Water Content. In this task, you can only use column 1, 2 and 3 and you'll just read into
values for one year, ie 8760 hours.
Doses should be calculated as described below.
The task is to write a computer program in Python that calculates mushrooms index
north and south in one year, and plots these curves.
The program shall have the following of functions:
read_data (northf, southf) that takes the filename of the data files from north and south, opens and reads
these for a year (8760 hours) and returns a dictionary with hours, TempSurface_north,
RHsurface_north, TempSurface_south, RHsurface_south
mean12h_values (hourly_temp, hourly_rh) that takes two arrays, one with TempSurface and
with RHSurface hourly values, calculates the 12-hour mean and returns these
compute_dose (temp, RH, n = 730) that takes in the 12-hour mean temperature of RH and
determines the number of times it is supposed to be, which is predetermined to 730 (equivalent to a year).
The function returns an array with the total dose per time.
compute_mould (Dtot, n = 730, Dcrit = 10) which takes an array with the total dose,
number of points which is set to 730, and Dcrit which is set to 10. The function returns.
plot_mould (dsoppnorth, dsoppsouth) which takes into mushrooms index for north and south and plots
these as a function of time.
run_analysis (northf, southf) this function calls other functions (see also Template