def __init__(self, upperleftpoint, bottomrightpoint, meta={}): # # define a list of strings that will be returned and written to file self.ucvm_query_results = [] # Initializes the base class which is a horizontal slice. HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, meta)
def __init__(self, upperleftpoint, bottomrightpoint, spacing, cvm, vs_threshold): ## The Vs value to check for. self.vs_threshold = vs_threshold # Initializes the base class which is a horizontal slice. HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, spacing, cvm)
def plot(self, title=None, horizontal_label="Depth (m)", filename=None): if self.upperleftpoint.description == None: location_text = "" else: location_text = self.upperleftpoint.description + " " # Gets the better CVM description if it exists. cvmdesc = UCVM_CVMS[self.cvm] if cvmdesc == None: cvmdesc = self.cvm if title == None: title = "%sBasin Depth Map For %s" % (location_text, cvmdesc) HorizontalSlice.plot(self, "vs", horizontal_label=horizontal_label, title=title, filename=filename, \ color_scale="sd")
def plot(self): if self.upperleftpoint.description == None: location_text = "" else: location_text = self.upperleftpoint.description + " " # Gets the better CVM description if it exists. try: cvmdesc = UCVM_CVMS[self.cvm] except: cvmdesc = self.cvm if 'title' not in self.meta: self.title = "%sBasin Depth Map For %s" % (location_text, cvmdesc) self.meta['title'] = self.title self.meta['mproperty'] = "vs" HorizontalSlice.plot(self)
def plot(self, title=None, filename=None, color_scale="d"): if self.upperleftpoint.description == None: location_text = "" else: location_text = self.upperleftpoint.description + " " # Gets the better CVM description if it exists. try: cvmdesc = UCVM_CVMS[self.cvm] except: cvmdesc = self.cvm if title == None: title = "%sVs30 Data For %s" % (location_text, cvmdesc) HorizontalSlice.plot(self, "vs", title=title, filename=filename, color_scale=color_scale)
def __init__(self, upperleftpoint, bottomrightpoint, spacing, cvm, xsteps=None, ysteps=None): self.xsteps = xsteps self.ysteps = ysteps # # define a list of strings that will be returned and written to file self.ucvm_query_results = [] # Initializes the base class which is a horizontal slice. HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, spacing, cvm, xsteps=xsteps, ysteps=ysteps)
def __init__(self, upperleftpoint, bottomrightpoint, spacing, cvm): # Initializes the base class which is a horizontal slice. HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, spacing, cvm)
def __init__(self, upperleftpoint, bottomrightpoint, meta={}): self.meta = meta # Initializes the base class which is a horizontal slice. HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, meta)