def get_date_list(self): """ Return a list of dates (year/month) that this stn has data files. """ filenames = os.listdir(self.data_dir) dates = [yearmonth_from_filename(f) for f in filenames if is_valid_filename(f, self.stn_id)] dates.sort() return dates
def get_date_list(self): """ Return a list of dates (year/month) that this stn has data files. """ filenames = os.listdir(self.data_dir) dates = [ yearmonth_from_filename(f) for f in filenames if is_valid_filename(f, self.stn_id) ] dates.sort() return dates
def yearmonth(self): return yearmonth_from_filename(self.filename)