@@ -38,20 +38,20 @@ def disaggregate(df_daily: pd.DataFrame, params: dict,
3838
3939 Parameters
4040 ----------
41- df_daily: pd.DataFrame
41+ df_daily:
4242 Dataframe containing daily timeseries.
4343 Should be the result of one of the methods
4444 provided in the `methods` directory.
45- params: dict
45+ params:
4646 A dictionary containing the class parameters
4747 of the MetSim object.
48- solar_geom: dict
48+ solar_geom:
4949 A dictionary of solar geometry variables
50- t_begin: list
50+ t_begin:
5151 List of t_min and t_max for day previous to the
5252 start of `df_daily`. None indicates no extension
5353 of the record.
54- t_end: list
54+ t_end:
5555 List of t_min and t_max for day after the end
5656 of `df_daily`. None indicates no extension of
5757 the record.
@@ -119,16 +119,19 @@ def set_min_max_hour(tiny_rad_fract: np.array, yday: np.array, n_days: int,
119119
120120 Parameters
121121 ----------
122- disagg_rad:
123- Shortwave radiation disaggregated
124- to sub-daily timesteps.
122+ tiny_rad_fract:
123+ Array of fraction of shortwave radiation received
124+ at a shortened timestep. This should be calculated
125+ by `metsim.physics.solar_geom`.
126+ yday:
127+ Array of day of year for each simulated day.
125128 n_days:
126- The number of days being disaggregated
129+ Number of days in run.
127130 ts:
128- Timestep used for disaggregation
131+ Timestep of run.
129132 params:
130- A dictionary of class parameters of
131- the MetSim object .
133+ Dictionary of parameters to use. Must contain
134+ `utc_offset` and `tmax_daylength_fraction` .
132135
133136 Returns
134137 -------
@@ -173,11 +176,12 @@ def temp(t_min: np.array, t_max: np.array, out_len: int,
173176
174177 Parameters
175178 ----------
176- TODO: FIXME
177- df_daily:
178- A dataframe of daily values.
179- df_disagg:
180- A dataframe of sub-daily values.
179+ t_min:
180+ Timeseries of daily minimum temperatures.
181+ t_max:
182+ Timeseries of daily maximum temperatures.
183+ out_len:
184+ Length of the required output vector.
181185 t_t_min:
182186 Times at which minimum daily
183187 temperatures are reached.
@@ -186,11 +190,11 @@ def temp(t_min: np.array, t_max: np.array, out_len: int,
186190 temperatures are reached.
187191 ts:
188192 Timestep for disaggregation
189- t_begin: list
193+ t_begin:
190194 List of t_min and t_max for day previous to the
191195 start of `df_daily`. None indicates no extension
192196 of the record.
193- t_end: list
197+ t_end:
194198 List of t_min and t_max for day after the end
195199 of `df_daily`. None indicates no extension of
196200 the record.
0 commit comments