nctoolkit.DataSet.tmin¶
-
DataSet.
tmin
(self, over='time')¶ Calculate the temporal minimum of all variables
- Parameters
over (str or list) – Time periods to average over. Options are ‘year’, ‘month’, ‘day’.
Examples
If you want to calculate minimum over all time steps. Do the following:
>>> data.tmin()
If you want to calculate the minimum for each year in a dataset, do this:
>>> data.tmin("year")
If you want to calculate the minimum for each month in a dataset, do this:
>>> data.tmin("month")
If you want to calculate the minimum for each month in each year in a dataset, do this:
>>> data.tmin(["year", "month"])
This method will also let you easily calculate climatologies. So, if you wanted to calculate a monthly climatological min, you would do this:
>>> data.tmin( "month")
A daily climatological minimum would be the following:
>>> data.tmin( "day")