コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
    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")
コード例 #4
0
    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)
コード例 #5
0
ファイル: vs30_slice.py プロジェクト: hexiang6666/UCVMC
    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)
コード例 #6
0
    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)
コード例 #7
0
ファイル: vs30_slice.py プロジェクト: hexiang6666/UCVMC
    def __init__(self, upperleftpoint, bottomrightpoint, spacing, cvm):

        #  Initializes the base class which is a horizontal slice.
        HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint,
                                 spacing, cvm)
コード例 #8
0
    def __init__(self, upperleftpoint, bottomrightpoint, meta={}):

        self.meta = meta

        #  Initializes the base class which is a horizontal slice.
        HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, meta)