Source code for irfpy.vima.table

"""VEX tables
"""
import numpy as np
from irfpy.util.sensortable import Table


[docs]class AzimuthalTable(Table): ''' Azimuth angle table, in the IMA bible, section 6. ''' version = "1.0" units = "deg" def __init__(self): Table.__init__(self) self.tbl = 78.75 + 22.5 * np.arange(16) self.bnd = np.zeros(17) self.bnd[:-1] = self.tbl - 11.25 self.bnd[-1] = self.tbl[-1] + 11.25
[docs] def getTable(self): return self.tbl[:]
[docs] def getBound(self): return self.bnd[:]
[docs] def getRange(self): lb = self.bnd[:-1] ub = self.bnd[1:] return np.array([lb, ub])
def __str__(self): return "AzimuthalTable: v%s" % AzimuthalTable.version