Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 def yearmonth(self):
     return yearmonth_from_filename(self.filename)
Пример #4
0
 def yearmonth(self):
     return yearmonth_from_filename(self.filename)