tvaLib
Public Member Functions | Static Public Attributes | List of all members
lib.metadata.SiteAnalysis Class Reference
Inheritance diagram for lib.metadata.SiteAnalysis:

Public Member Functions

def __init__ (self, zone='', camIds='', startTimes='', endTimes='', name='', virtual_loops='', description='', configurationFilename='', temp_avg=None, precipitation=None, glare=None, infrastructureClass=None, geo_1=None, geo_2=None, geo_3=None, geo_4=None, geo_5=None, expansion_factors='', xy_bounds='', cm_bounds='', max_speed=80, hex_grid_x=60, hex_grid_y=60)
 

Static Public Attributes

 idx = Column(Integer, primary_key=True)
 
 name = Column(String)
 
 camIds = Column(String)
 
 startTimes = Column(String)
 
 endTimes = Column(String)
 
 zone = Column(String)
 
 virtual_loops = Column(String)
 
 configurationFilename = Column(String)
 
 description = Column(String)
 
 temp_avg = Column(Float)
 
 precipitation = Column(Float)
 
 glare = Column(Boolean)
 
 geo_1 = Column(Float)
 
 geo_2 = Column(Float)
 
 geo_3 = Column(Float)
 
 geo_4 = Column(Float)
 
 geo_5 = Column(Float)
 
 expansion_factors = Column(String, default=str([0.041666 for i in range(24)]))
 
 xy_bounds = Column(String)
 
 cm_bounds = Column(String)
 
 max_speed = Column(Integer, default = 80)
 
 hex_grid_x = Column(Integer, default = 60)
 
 hex_grid_y = Column(Integer, default = 60)
 

Detailed Description

Contains site-specific analysis variables. 

Definition at line 232 of file metadata.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.metadata.SiteAnalysis.__init__ (   self,
  zone = '',
  camIds = '',
  startTimes = '',
  endTimes = '',
  name = '',
  virtual_loops = '',
  description = '',
  configurationFilename = '',
  temp_avg = None,
  precipitation = None,
  glare = None,
  infrastructureClass = None,
  geo_1 = None,
  geo_2 = None,
  geo_3 = None,
  geo_4 = None,
  geo_5 = None,
  expansion_factors = '',
  xy_bounds = '',
  cm_bounds = '',
  max_speed = 80,
  hex_grid_x = 60,
  hex_grid_y = 60 
)
StartTime is passed as string in utils.datetimeFormat, eg 2011-06-22 10:00:39. 

Definition at line 259 of file metadata.py.

259  def __init__(self, zone='', camIds='', startTimes='', endTimes='', name='', virtual_loops='', description='', configurationFilename='', temp_avg=None, precipitation=None, glare=None, infrastructureClass=None, geo_1=None, geo_2=None, geo_3=None, geo_4=None, geo_5=None, expansion_factors='', xy_bounds='', cm_bounds='', max_speed=80, hex_grid_x=60, hex_grid_y=60):
260  ''' StartTime is passed as string in utils.datetimeFormat, eg 2011-06-22 10:00:39. '''
261  self.name = name
262  self.camIds = camIds
263  self.startTimes = startTimes
264  self.endTimes = endTimes
265  self.zone = zone
266  self.virtual_loops = virtual_loops
267  self.description = description
268  self.configurationFilename = configurationFilename
269  self.temp_avg = temp_avg
270  self.precipitation = precipitation
271  self.glare = glare
272  self.geo_1 = geo_1
273  self.geo_2 = geo_2
274  self.geo_3 = geo_3
275  self.geo_4 = geo_4
276  self.geo_5 = geo_5
277  self.expansion_factors = expansion_factors
278  self.xy_bounds = xy_bounds
279  self.cm_bounds = cm_bounds
280  try: self.max_speed = int(max_speed)
281  except: self.max_speed = 80
282  try: self.hex_grid_x = int(hex_grid_x)
283  except: self.hex_grid_x = 60
284  try: self.hex_grid_y = int(hex_grid_y)
285  except: self.hex_grid_y = 60

Member Data Documentation

◆ camIds

lib.metadata.SiteAnalysis.camIds = Column(String)
static

Definition at line 237 of file metadata.py.

◆ cm_bounds

lib.metadata.SiteAnalysis.cm_bounds = Column(String)
static

Definition at line 254 of file metadata.py.

◆ configurationFilename

lib.metadata.SiteAnalysis.configurationFilename = Column(String)
static

Definition at line 242 of file metadata.py.

◆ description

lib.metadata.SiteAnalysis.description = Column(String)
static

Definition at line 243 of file metadata.py.

◆ endTimes

lib.metadata.SiteAnalysis.endTimes = Column(String)
static

Definition at line 239 of file metadata.py.

◆ expansion_factors

lib.metadata.SiteAnalysis.expansion_factors = Column(String, default=str([0.041666 for i in range(24)]))
static

Definition at line 252 of file metadata.py.

◆ geo_1

lib.metadata.SiteAnalysis.geo_1 = Column(Float)
static

Definition at line 247 of file metadata.py.

◆ geo_2

lib.metadata.SiteAnalysis.geo_2 = Column(Float)
static

Definition at line 248 of file metadata.py.

◆ geo_3

lib.metadata.SiteAnalysis.geo_3 = Column(Float)
static

Definition at line 249 of file metadata.py.

◆ geo_4

lib.metadata.SiteAnalysis.geo_4 = Column(Float)
static

Definition at line 250 of file metadata.py.

◆ geo_5

lib.metadata.SiteAnalysis.geo_5 = Column(Float)
static

Definition at line 251 of file metadata.py.

◆ glare

lib.metadata.SiteAnalysis.glare = Column(Boolean)
static

Definition at line 246 of file metadata.py.

◆ hex_grid_x

lib.metadata.SiteAnalysis.hex_grid_x = Column(Integer, default = 60)
static

Definition at line 256 of file metadata.py.

◆ hex_grid_y

lib.metadata.SiteAnalysis.hex_grid_y = Column(Integer, default = 60)
static

Definition at line 257 of file metadata.py.

◆ idx

lib.metadata.SiteAnalysis.idx = Column(Integer, primary_key=True)
static

Definition at line 235 of file metadata.py.

◆ max_speed

lib.metadata.SiteAnalysis.max_speed = Column(Integer, default = 80)
static

Definition at line 255 of file metadata.py.

◆ name

lib.metadata.SiteAnalysis.name = Column(String)
static

Definition at line 236 of file metadata.py.

◆ precipitation

lib.metadata.SiteAnalysis.precipitation = Column(Float)
static

Definition at line 245 of file metadata.py.

◆ startTimes

lib.metadata.SiteAnalysis.startTimes = Column(String)
static

Definition at line 238 of file metadata.py.

◆ temp_avg

lib.metadata.SiteAnalysis.temp_avg = Column(Float)
static

Definition at line 244 of file metadata.py.

◆ virtual_loops

lib.metadata.SiteAnalysis.virtual_loops = Column(String)
static

Definition at line 241 of file metadata.py.

◆ xy_bounds

lib.metadata.SiteAnalysis.xy_bounds = Column(String)
static

Definition at line 253 of file metadata.py.

◆ zone

lib.metadata.SiteAnalysis.zone = Column(String)
static

Definition at line 240 of file metadata.py.


The documentation for this class was generated from the following file: