Exemplo n.º 1
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
Exemplo n.º 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=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
Exemplo n.º 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 = 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
Exemplo n.º 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=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