Пример #1
0
 def __init__(self,
              filepath,
              filetype,
              registry,
              project_config,
              target_year,
              start_date,
              end_date,
              source,
              region,
              mode='w',
              **kwargs):
     self._preInitProject_(registry)
     self.preInitBuilder(project_config,
                         filetype,
                         source,
                         target_year,
                         region,
                         start_date=start_date,
                         end_date=end_date,
                         **kwargs)
     lats = kwargs.get('lats', None)
     lons = kwargs.get('lons', None)
     Hdf5DateGridFileBuilder.__init__(self, filepath, start_date, end_date,
                                      lons, lats, mode)
     hdf5ReaderPatch(self)
     self.initFileAttributes(**kwargs)
     self.postInitBuilder(**kwargs)
     self.close()
Пример #2
0
 def __init__(self, filepath, registry, config, target_year, source, region,
              start_date, end_date, **kwargs):
     self._preInitProject_(registry)
     self.preInitBuilder(config, 'tempexts', source, target_year, region,
                         **kwargs)
     Hdf5DateGridFileBuilder.__init__(self, filepath, start_date, end_date,
                                      None, None)
     hdf5ReaderPatch(self)
     self.initFileAttributes(**kwargs)
     self.postInitBuilder(**kwargs)
     self.close()
Пример #3
0
 def __init__(self, filepath, registry=None, mode='r'):
     if registry is None: self._preInitProject_(REGBASE)
     else: self._preInitProject_(registry)
     Hdf5DateGridFileManager.__init__(self, filepath, mode)
     hdf5ReaderPatch(self)
     self._postInitProject_()
Пример #4
0
 def __init__(self, filepath, registry, mode='r'):
     self._preInitProject_(registry)
     Hdf5DateGridFileManager.__init__(self, filepath, mode)
     hdf5ReaderPatch(self)
     self._postInitProject_()
Пример #5
0
 def __init__(self, filepath, registry):
     self._preInitProject_(registry)
     Hdf5DateGridFileReader.__init__(self, filepath)
     hdf5ReaderPatch(self)
     self._postInitProject_()