IODA
05-ObsGroup.py File Reference

Go to the source code of this file.

Namespaces

 05-ObsGroup
 

Variables

 05-ObsGroup.g
 
int 05-ObsGroup.numLocs = 40
 
int 05-ObsGroup.numChans = 30
 
list 05-ObsGroup.newDims
 
 05-ObsGroup.og = ioda.ObsGroup.generate(g, newDims)
 
 05-ObsGroup.nlocsVar = og.vars.open('nlocs')
 
 05-ObsGroup.nchansVar = og.vars.open('nchans')
 
 05-ObsGroup.p1 = ioda.VariableCreationParameters()
 
string 05-ObsGroup.tbName = "ObsValue/brightness_temperature"
 
string 05-ObsGroup.latName = "MetaData/latitude"
 
string 05-ObsGroup.lonName = "MetaData/longitude"
 
 05-ObsGroup.tbVar = g.vars.create(tbName, ioda.Types.float, scales=[nlocsVar, nchansVar], params=p1)
 
 05-ObsGroup.latVar = g.vars.create(latName, ioda.Types.float, scales=[nlocsVar], params=p1)
 
 05-ObsGroup.lonVar = g.vars.create(lonName, ioda.Types.float, scales=[nlocsVar], params=p1)
 
int 05-ObsGroup.midLoc = numLocs / 2
 
int 05-ObsGroup.midChan = numChans / 2
 
 05-ObsGroup.lonData = np.fromfunction(lambda i: 3 * (i % 8), (numLocs,), dtype=float)
 
 05-ObsGroup.latData = np.fromfunction(lambda i: 3 * (i // 8), (numLocs,), dtype=float)
 
 05-ObsGroup.tbData = np.fromfunction(lambda iloc, ich: 250 + (((iloc - midLoc)**2 + (ich-midChan)**2))**0.5, (numLocs, numChans), dtype=float)