Пример #1
0
 def _read_arr(self, side='lowerface_'):
     file_name = side + self.geo_input_name + '.robj'
     file_path = join('geometry_files', file_name)
     v_arr = read_rsurface(file_path)
     filter = self.geo_filter.get(self.geo_input_name, None)
     if filter != None:
         v_arr = filter(v_arr)
     return v_arr
 def _read_arr( self, side = 'lowerface_' ):
     file_name = side + self.geo_input_name + '.robj'
     file_path = join( 'geometry_files', file_name )
     v_arr = read_rsurface( file_path )
     filter = self.geo_filter.get( self.geo_input_name, None )
     if filter != None:
         v_arr = filter( v_arr )
     return v_arr
Пример #3
0
    def _read_arr(self, side="lowerface_"):
        file_name = side + self.geo_input_name + ".robj"
        file_path = join("geometry_files", file_name)
        v_arr = read_rsurface(file_path)

        filter = self.geo_filter.get(self.geo_input_name, None)
        if filter != None:
            v_arr = filter(v_arr)
        return v_arr
Пример #4
0
    def _read_arr(self, side = 'lowerface_'):
        '''read the robj-file saved in the subdirectory 
        'geometry_files'
        '''
        file_name = side + self.geo_input_name + '.robj'
        file_path = join('geometry_files', file_name)
        # get an array with the vertice coordinates
        #
        v_arr = read_rsurface(file_path)
#        print 'v_arr before filtering \n', v_arr
#        print 'v_arr.shape before filtering \n', v_arr.shape
        filter = self.geo_filter.get(self.geo_input_name, None)
        if filter != None:
            v_arr = filter(v_arr)
#        print 'v_arr after filtering \n', v_arr
#        print 'v_arr.shape after filtering \n', v_arr.shape
        return v_arr
Пример #5
0
    def _get_vl_arr( self ):
        vl_arr = read_rsurface( self.geo_file_lower )

        if self.cut_off_lowerface == True:
            print '--- lower face z-coords cut off ---'

            # z-values of the coords from the lower face are cut off. 
            # From the highest z-coordinate of the lower face the vertical
            # distance is 1 m (=delta h). At this limit the lower face is
            # cut off. Global z coordinate is assumed to point up.
            #
            delta_h = 1.0
            vl_z_max = max( vl_arr[:, 2] )
            vl_z_min = vl_z_max - delta_h
            vl_arr_z = where( vl_arr[:, 2] < vl_z_min, vl_z_min, vl_arr[:, 2] )
            vl_arr = c_[vl_arr[:, 0:2], vl_arr_z]

        return vl_arr
Пример #6
0
    def _get_vl_arr(self):
        vl_arr = read_rsurface(self.geo_file_lower)

        if self.cut_off_lowerface == True:
            print '--- lower face z-coords cut off ---'

            # z-values of the coords from the lower face are cut off.
            # From the highest z-coordinate of the lower face the vertical
            # distance is 1 m (=delta h). At this limit the lower face is
            # cut off. Global z coordinate is assumed to point up.
            #
            delta_h = 1.0
            vl_z_max = max(vl_arr[:, 2])
            vl_z_min = vl_z_max - delta_h
            vl_arr_z = where(vl_arr[:, 2] < vl_z_min, vl_z_min, vl_arr[:, 2])
            vl_arr = c_[vl_arr[:, 0:2], vl_arr_z]

        return vl_arr
Пример #7
0
    def _read_arr(self, side='lowerface_'):
        '''read the robj-file saved in the subdirectory 
        'geometry_files'
        '''
        file_name = side + self.geo_input_name + '.robj'
        file_path = join('geometry_files', file_name)
        # get an array with the vertice coordinates
        #
        v_arr = read_rsurface(file_path)
        #        print 'v_arr before filtering \n', v_arr
        #        print 'v_arr.shape before filtering \n', v_arr.shape
        filter = self.geo_filter.get(self.geo_input_name, None)
        if filter != None:
            v_arr = filter(v_arr)


#        print 'v_arr after filtering \n', v_arr
#        print 'v_arr.shape after filtering \n', v_arr.shape
        return v_arr
Пример #8
0
 def _get_vu_arr( self ):
     return read_rsurface( self.geo_file_upper )
Пример #9
0
 def _get_vu_arr(self):
     return read_rsurface(self.geo_file_upper)