| Function Summary |
| sequence of datetime.datetime, numpy.array, numpy.array
|
apply_mask_for_common_days(sim_dates,
simulated,
obs_dates,
obs,
mask_sim,
mask_obs)
Applies a mask returned by mask_for_common_days on simulated and
observation data, and gets corresponding dates. |
| (list of datetime, numpy.array, list of datetime, numpy.array)
or (list of datetime, numpy.array, numpy.array)
|
get_daily_obs_peaks(dates,
sim,
obs,
hour_range,
nb_range_min,
nb_min,
paired)
Returns the daily peaks for both observations and computed
concentrations. |
| (list of datetime, numpy.array)
|
get_daily_peaks(dates,
conc,
hour_range,
nb_range_min,
nb_min)
Returns the daily peaks. |
| Period
|
get_period(dates)
Returns the period englobing all dates in dates. |
| sequence of Period
|
get_periods(start,
end,
length,
interperiod,
fit_last)
Returns a list of periods of given length (except last period if
fit_last is True), beginning at given start date, ending at given end
date, and with an interperiod time between them. |
| sequence of datetime.datetime
|
get_simulation_dates(t_min,
delta_t,
Nt)
Gets a list of dates corresponding to the simulation data. |
| numpy.array, numpy.array
|
mask_for_common_days(sim_dates,
simulated,
obs_dates,
obs)
Creates masks for simulated data and observation data corresponding to
data of common dates. |
| array
|
mask_for_series(dates,
delta,
Ndates)
Removes the dates if there are not enough preceding contiguous
dates. |
| (numpy.array(type=Bool), numpy.array(type=Bool))
|
masks_for_common_dates(dates0,
dates1)
Computes masks to be applied so that data sets available at 'dates0'
and 'dates1' may be defined at the same dates. |
| datetime.datetime
|
midnight(date)
Move to midnight in the current day. |
| (list of datetime, array)
|
remove_days(dates,
data,
days)
Removes data in the first days. |
| (list of datetime, array)
|
remove_incomplete_days(dates,
data)
Removes dates and data from the first and/or last days of the period
if there is missing data in these days. |
| (list of datetime, 2D numpy.array)
|
remove_missing(dates,
data,
rm_value)
Removes given values from a data array and removes the corresponding
dates. |
| sequence of datetime.datetime, numpy.array, numpy.array
|
restrict_to_common_dates(sim_dates,
simulated,
obs_dates,
obs)
Gets items from data and dates so as to keep only dates and
corresponding data which are both in observations and simulated data. |
| sequence of datetime.datetime, numpy.array, numpy.array
|
restrict_to_common_days(sim_dates,
simulated,
obs_dates,
obs)
Gets items from data and dates so as to keep only daily data which are
both in observations and simulated data. |
| sequence of datetime.datetime, numpy.array, numpy.array
|
restrict_to_common_days2(sim_dates,
simulated,
obs_dates,
obs)
Gets items from data and dates so as to keep only daily data which are
both in observations and simulated. |
| (list of datetime, array)
|
restrict_to_period(dates,
data,
period_date,
end_date)
Returns data and associated dates within a given period. |
| sequence of dates sequences, sequence of numpy.array
|
split_into_days(dates,
data)
Gets a sequence of arrays which store the values for each day. |
| float
|
timedelta2num(delta)
Converts datetime.timedelta to float day number as used in
Matplotlib. |