pencil_beam_model.py
Go to the documentation of this file.
00001 import numpy as np, math
00002 import cPickle as pkl
00003 
00004 EXT = 10.0
00005 DIVS = 200  # Keep this even
00006 
00007 
00008 d = {}
00009 d['xedges'] = np.linspace( -1 * EXT, EXT, DIVS )
00010 d['yedges'] = np.linspace( -1 * EXT, EXT, DIVS )
00011 d['stddev_model'] = np.ma.array(np.ones( (DIVS,DIVS) ))
00012 d['detect_model'] = np.ma.array(np.ones( (DIVS,DIVS) ))
00013 d['rssi_model'] = np.ma.array( np.ones( (DIVS,DIVS) ) * 55 )
00014 
00015 t = d['rssi_model'][DIVS/2-1,DIVS/2-1:]
00016 d['rssi_model'][DIVS/2-1,DIVS/2-1:] = np.array([-35.0 / (DIVS / 2) * i + 100
00017                                                 for i in xrange( len( t ))])
00018 
00019 # Need to build a fake yaml config file for this fake beam model.
00020 
00021 f = open( 'pencil_beam_MODEL.pkl', 'w' )
00022 pkl.dump( d, f )
00023 f.close()
00024 
00025 
00026 


rfid_pf
Author(s): Travis Deyle
autogenerated on Wed Nov 27 2013 12:03:34