示例#1
0
  def setUp(self):
    from pygeode.atmdyn import meteoVar 
    # load main dataset      
    if self.dataset == 'lm':      
      from myDatasets.loadLM import openLM, allLM, LMroot, LCs, hostname
      # time-step/file definition for COSMO data
      LC = 'LC1' # smallest data set     
      self.rootFolder = LMroot + LCs[LC] + '/' # path to data set        
      # load COSMO data set
      if hostname=='komputer': 
        data = openLM(LC)
        data += meteoVar.Entropy(data.T, data.p) # add entropy   
      elif hostname=='erlkoenig': 
        data = allLM(LC=LC,tag='test',specialVars=['PV','PVs','s'],LMdata=False)
      # add more variables to dataset
      data += meteoVar.Theta(data.T, data.p)
      data += meteoVar.N2(data.th)
    elif self.dataset == 'ifs':
      from myDatasets.loadIFS import allIFS, IFSroot
#      # some pre-computed data
#      file = 'ecmwfTestData183JanNH.nc'  
      # load ECMWF-IPY data set      
      data = allIFS('JanNH', serverData=False)
      # add N2
      data += meteoVar.N2(data.s, z=data.z, entropy=True)
      self.rootFolder = IFSroot               
    # save dataset
    self.data = data
示例#2
0
 def setUp(self):
     from pygeode.atmdyn import meteoVar
     # load main dataset
     if self.dataset == 'lm':
         from myDatasets.loadLM import openLM, allLM, LMroot, LCs, hostname
         # time-step/file definition for COSMO data
         LC = 'LC1'  # smallest data set
         self.rootFolder = LMroot + LCs[LC] + '/'  # path to data set
         # load COSMO data set
         if hostname == 'komputer':
             data = openLM(LC)
             data += meteoVar.Entropy(data.T, data.p)  # add entropy
         elif hostname == 'erlkoenig':
             data = allLM(LC=LC,
                          tag='test',
                          specialVars=['PV', 'PVs', 's'],
                          LMdata=False)
         # add more variables to dataset
         data += meteoVar.Theta(data.T, data.p)
         data += meteoVar.N2(data.th)
     elif self.dataset == 'ifs':
         from myDatasets.loadIFS import allIFS, IFSroot
         #      # some pre-computed data
         #      file = 'ecmwfTestData183JanNH.nc'
         # load ECMWF-IPY data set
         data = allIFS('JanNH', serverData=False)
         # add N2
         data += meteoVar.N2(data.s, z=data.z, entropy=True)
         self.rootFolder = IFSroot
     # save dataset
     self.data = data
示例#3
0
 def setUp(self):
   if self.dataset == 'CRU':
     from myDatasets.loadLM import openLM, allLM, LMroot, LCs, hostname
     # time-step/file definition for COSMO data
     LC = 'LC1' # smallest data set      
     self.slice = self.sliceLM
     # load COSMO data set
     if hostname=='komputer': self.data = openLM(LC)
     elif hostname=='erlkoenig': 
       self.data = allLM(LC=LC,tag='test',specialVars=[],LMdata=True) # 'PV','PVs','s'
     # save root folder for later 
     self.rootFolder = LMroot + LCs[LC] + '/'
示例#4
0
 def setUp(self):
     if self.dataset == 'CRU':
         from myDatasets.loadLM import openLM, allLM, LMroot, LCs, hostname
         # time-step/file definition for COSMO data
         LC = 'LC1'  # smallest data set
         self.slice = self.sliceLM
         # load COSMO data set
         if hostname == 'komputer': self.data = openLM(LC)
         elif hostname == 'erlkoenig':
             self.data = allLM(LC=LC,
                               tag='test',
                               specialVars=[],
                               LMdata=True)  # 'PV','PVs','s'
         # save root folder for later
         self.rootFolder = LMroot + LCs[LC] + '/'