Ghost/Epsmap_class.py
def writemap(self,map,filename='tester.dx'):
        """Write this map in dx format"""
        mydata=[]
        #count=0
        for k in range(map.nz):
            for j in range(map.ny):
                for i in range(map.nx):
                    #index = map.get_index(i,j,k)
                    #print index,count,i,j,k
                    #if index!=count:
                    #    raise Exception('Error in reformatting map')
                    mydata.append(map.get_value(i,j,k))
                    #count=count+1
        #
        # Create the grid
        #
        #print mydata
        mygrid = Vgrid_ctor(map.nx, map.ny, map.nz,
                            map.hx, map.hy, map.hz,
                            map.xmin, map.ymin, map.zmin, mydata)
        Vgrid_writeDX(mygrid, "FILE", "ASC", "", filename,'What is this', null_array())
        delete_vgrid(mygrid)
        #print 'Writemap wrote %s' %filename
        return
Write this map in dx format
Write this map in dx format
Write this map in dx format
def writemap(self,map,filename='tester.dx'):
        mydata=[]
        for k in range(map.nz):
            for j in range(map.ny):
                for i in range(map.nx):
                    mydata.append(map.get_value(i,j,k))
         Create the grid
        print mydata
        mygrid = Vgrid_ctor(map.nx, map.ny, map.nz,
                            map.hx, map.hy, map.hz,
                            map.xmin, map.ymin, map.zmin, mydata)
        Vgrid_writeDX(mygrid, "FILE", "ASC", "", filename,'What is this', null_array())
        delete_vgrid(mygrid)
        print 'Writemap wrote %s' %filename
        return
def writemap ( self , map , filename = 'tester.dx' ) : mydata = [ ] for k in range ( map . nz ) : for j in range ( map . ny ) : for i in range ( map . nx ) : mydata . append ( map . get_value ( i , j , k ) ) mygrid = Vgrid_ctor ( map . nx , map . ny , map . nz , map . hx , map . hy , map . hz , map . xmin , map . ymin , map . zmin , mydata ) Vgrid_writeDX ( mygrid , "FILE" , "ASC" , "" , filename , 'What is this' , null_array ( ) ) delete_vgrid ( mygrid ) return
Write this map in dx format
Write this map in dx format
"""Write this map in dx format""" #count=0 #index = map.get_index(i,j,k) #print index,count,i,j,k #if index!=count: #    raise Exception('Error in reformatting map') #count=count+1 # # Create the grid # #print mydata #print 'Writemap wrote %s' %filename
self
map
filename