Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
 def yearmonth(self):
     return yearmonth_from_filename(self.filename)
Ejemplo n.º 4
0
 def yearmonth(self):
     return yearmonth_from_filename(self.filename)