metobs_toolkit.analysis.Analysis.subset_period#
- Analysis.subset_period(startdt, enddt)[source]#
Subset the observations of the Analysis to a specific period.
The same timezone is assumed as the data.
- Parameters:
startdt (datetime.datetime) – The start datetime to filter the observations to.
enddt (datetime.datetime) – The end datetime to filter the observations to.
- Return type:
None.
Note
If a timezone unaware datetime is given as an argument, it is interpreted as if it has the same timezone as the observations.