def __init__(self, se, gain = None): sc3.__init__(self, 'sensor') self.baseid = se.id self.att = se.getAttributes() self.pz = se.generatePz(gain) self.id = "%s/g=%s" % (self.baseid, int(float(self.pz.gain)))
def __init__(self, sg): if not isinstance(sg, Sg): return False self.stationReferences = [] sc3.__init__(self, 'stationGroup', self.stationReferences) self.code = sg.code self.start = sg.start self.end = sg.end self.att = sg.getStationGroupAttributes() self.srdata = []
def __init__(self, nw): if not isinstance(nw, Nw): return False self.stations = [] sc3.__init__(self, 'network', self.stations) nslc.__init__(self) self.code = nw.code self.start = nw.start self.end = nw.end self.att = nw.getNetworkAttributes()
def __init__(self, nw): if not isinstance(nw,Nw): return False self.stations = [] sc3.__init__(self, 'network', self.stations) nslc.__init__(self) self.code = nw.code self.start = nw.start self.end = nw.end self.att = nw.getNetworkAttributes()
def __init__(self, sg): if not isinstance(sg,Sg): return False self.stationReferences = [] sc3.__init__(self, 'stationGroup', self.stationReferences) self.code = sg.code self.start = sg.start self.end = sg.end self.att = sg.getStationGroupAttributes() self.srdata = []
def __init__(self, station, sl): if not isinstance(sl, Sl): return False self.channels = [] sc3.__init__(self, 'location', self.channels) nslc.__init__(self) self.station = station self.code = sl.location self.start = sl.start self.end = sl.end self.att = sl.getLocationAttributes() self.Sl(sl)
def __init__(self, location, code, sl): sc3.__init__(self, 'channel') self.location = location nslc.__init__(self) self.code = code self.start = sl.start self.end = sl.end self.att = sl.getChannelAttributes(self.code) ## Bring the Instrument gains to the channel level self._sensorGain = sl.sensorGain self._dataloggerGain = sl.dataloggerGain
def __init__(self, cl, channel, start, end): if cl.type == "S": sc3.__init__(self, "sensorCalibration") else: sc3.__init__(self, "dataloggerCalibration") if channel < 0 or channel >= cl.channelCount: raise Exception("Invalid channel for calibration [%s]" % channel) self.start = start self.end = end self.channel = channel self.id = cl.id self.att = cl.getAttributes(channel)
def __init__(self, network, sl): if not isinstance(sl,Sl): return False self.locations = [] self.network = network sc3.__init__(self, 'station', self.locations) # I load myself as a station nslc.__init__(self) self.code = sl.code self.start = sl.start self.end = sl.end self.att = sl.getStationAttributes() # Further parse to generate my locations self.Sl(sl)
def __init__(self, network, sl): if not isinstance(sl, Sl): return False self.locations = [] self.network = network sc3.__init__(self, 'station', self.locations) # I load myself as a station nslc.__init__(self) self.code = sl.code self.start = sl.start self.end = sl.end self.att = sl.getStationAttributes() # Further parse to generate my locations self.Sl(sl)
def __init__(self, dl, gain = None): dcs = [] sc3.__init__(self, 'datalogger', dcs) if gain: self.gain = gain else: self.gain = dl.gain self.att = dl.getAttributes() self.id = "%s/g=%s" % (dl.id, int(float(self.gain))) self.maxClockDrift = dl.mcld if dl.chains: for (num, dec) in dl.chains: dcs.append(Decimation(num, dec, dl)) self.dcs = dcs else: print >>sys.stderr, "[%s] Datalogger %s has no stages." % (self.id, dl)
def __init__(self, pz): sc3.__init__(self, 'paz') self.id = pz.id self.att = pz.getAttributes()
def __init__(self, ff): sc3.__init__(self, 'fir') self.id = ff.id self.gain = ff.gain self.att = ff.getAttributes()
def __init__(self, stationGroup, stationID): self.stationGroup = stationGroup sc3.__init__(self, 'stationReference') self.att = { "StationID": stationID }
def __init__(self, numerator, decimator, dl): sc3.__init__(self, 'decimation') self._numerator = numerator self._denominator = decimator self.chains = dl.chains[(numerator, decimator)] self.att = {}
def __init__(self, stationGroup, stationID): self.stationGroup = stationGroup sc3.__init__(self, 'stationReference') self.att = {"StationID": stationID}