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:
>>> ds.tmin()
If you want to calculate the minimum for each year in a dataset, do this:
>>> ds.tmin("year")
If you want to calculate the minimum for each month in a dataset, do this:
>>> ds.tmin("month")
If you want to calculate the minimum for each month in each year in a dataset, do this:
>>> ds.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:
>>> ds.tmin( "month")
A daily climatological minimum would be the following:
>>> ds.tmin( "day")