nctoolkit.DataSet.select_years

DataSet.select_years(self, years=None)

Select years from a dataset This method will subset the dataset to only contain years within the list given. A warning message will be provided when there are missing years. :param years: Years(s) to select. These should be integers :type years: list,range or int