Beispiel #1
0
        def __init__(self):
            # Set core attributes.
            set_cmip5_id(file_id, self)

            # Set file specific attributes.
            self.file_name = self.drs[10]
            self.file_parts = self.drs[10].split('_')
            self.file_extension = self.drs[11]

            # Set temporal coverage attributes.
            self.temporal_coverage = TemporalCoverage()
            if len(self.file_parts) > 0:
                periods = self.file_parts[len(self.file_parts) - 1]
                periods = periods.split('-')
                self.temporal_coverage.set_periods(periods)
Beispiel #2
0
 def __init__(self):
     """Constructor."""
     set_cmip5_id(dataset_id, self)