Changeset 13402


Ignore:
Timestamp:
04/21/12 09:22:28 (13 years ago)
Author:
neise
Message:
coordinator has now the x,y coordinates as members x and y
Location:
fact/tools/pyscripts/pyfact
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/coor.py

    r13391 r13402  
    2828
    2929        chid, xe, ye = np.loadtxt(map_file_path, unpack=True)
    30         coors = zip(xe,ye,chid)
     30        # -ye in order to correct for the sign difference between my mapping file
     31        # and FACTmap111030.txt
     32        self.x = xe
     33        self.y = ye
     34        coors = zip(xe,-ye,chid)
    3135       
    3236        # this list will contain vectors pointing to the center of pixel
     
    154158            raise IOError('not able to find file: '+inpath)
    155159
    156 
    157 if __name__ == '__main__':
    158     co = Coordinator()
    159    
  • fact/tools/pyscripts/pyfact/plotters.py

    r13174 r13402  
    116116        chid, y,x,xe,ye,yh,xh,softid,hardid = np.loadtxt(map_file_path ,unpack=True)
    117117        self.xe = xe
    118         self.ye = ye
     118        # -ye in order to correct for the sign difference between my mapping file
     119        # and FACTmap111030.txt
     120        self.ye = -ye
    119121
    120122        self.H = (6,0,30./180.*3.1415926)
     
    199201                self.ax.grid(grid)
    200202                # the next line is a stupid hack
    201                 # I plot invisible pixels, so that the axes show look ok.
     203                # I plot invisible pixels, so that the axes look ok.
    202204                # this must be possible differently, but I don't know how...
    203205                self.ax.scatter(xe,ye,s=25,alpha=0,marker=H)
Note: See TracChangeset for help on using the changeset viewer.