Пример #1
0
 def __init__(self, siteid,datatype,zoo=None):
     super(self.__class__,self).__init__()
     self.basedir=ARMNarrator.getBasedir(siteid)
     if datatype.startswith('rlprof'):
         datatype=datatype.replace('rlprof','')
     self.datatype=datatype
     self.zoo=zoo
Пример #2
0
 def search(self, start, end, *args, **kwargs):
     """ Librarian Generator function
     extra parameters given here will be passed to the returned narrator's init
     """
     ret = ARMSondeNarrator(self, self.basedir, start, end)
     zoo = self.zoo
     if zoo is None and not kwargs.pop('filenames', False):
         from lg_dpl_toolbox.dpl.NetCDFZookeeper import GenericTemplateRemapNetCDFZookeeper
         zoo = GenericTemplateRemapNetCDFZookeeper('arm_profiles')
     if zoo is not None:
         ret = ARMNarrator.ARMFileNarrator(ret,
                                           zoo,
                                           preYield=ret.preYield,
                                           *args,
                                           **kwargs)
     if self.requested_altitudes is not None:
         import atmospheric_profiles.dpl.dpl_temperature_profiles as dtp
         ret = dtp.dpl_radiosonderesample(
             ret, 'altitudes', self.requested_altitudes, {
                 'temps': [50, 500],
                 'pressures': [1, 1000],
                 'dew_points': [150, 500],
                 'frost_points': [50, 500],
                 'altitudes': None
             })
     return ret
Пример #3
0
 def search(self,start,end,*args,**kwargs):
     """ Librarian Generator function
     extra parameters given here will be passed to the returned narrator's init
     """
     ret=MMCRMergeNarrator(self,self.basedir,self.dataprefix,start,end)
     if self.zoo is not None:
         ret=ARMNarrator.ARMFileNarrator(ret,self.zoo,ret.preYield,*args,**kwargs)
     return ret
Пример #4
0
 def search(self, start, end, *args, **kwargs):
     """ Librarian Generator function
     extra parameters given here will be passed to the returned narrator's init
     """
     ret = RainNarrator(
         self, self.basedir,
         self.instrumentname[self.instrumentname.find('rain'):],
         self.dataprefix, start, end)
     if self.zoo is not None:
         ret = ARMNarrator.ARMFileNarrator(ret, self.zoo, *args, **kwargs)
     return ret
Пример #5
0
 def search(self,start,end,*args,**kwargs):
     """ Librarian Generator function
     extra parameters given here will be passed to the returned narrator's init
     """
     ret=RamanNarrator(self,self.basedir,self.datatype,start,end)
     zoo=self.zoo
     if zoo is None and not kwargs.pop('filenames',False):
         from lg_dpl_toolbox.dpl.NetCDFZookeeper import GenericTemplateRemapNetCDFZookeeper 
         zoo=GenericTemplateRemapNetCDFZookeeper('raman_'+self.datatype)
     if zoo is not None:
         ret=ARMNarrator.ARMFileNarrator(ret,zoo,preYield=ret.preYield,*args,**kwargs)
     return ret
Пример #6
0
 def __init__(self, siteid, requested_altitudes=None, zoo=None):
     super(self.__class__, self).__init__()
     self.basedir = ARMNarrator.getBasedir(siteid)
     self.requested_altitudes = requested_altitudes
     self.zoo = zoo
Пример #7
0
 def __init__(self, siteid, instrumentname, dataprefix, zoo=None):
     super(self.__class__, self).__init__()
     self.basedir = ARMNarrator.getBasedir(siteid)
     self.dataprefix = dataprefix
     self.instrumentname = instrumentname
     self.zoo = zoo