Ignore:
Timestamp:
May 4, 2015 9:10:23 AM (8 years ago)
Author:
vondreele
Message:

redefine azimuthal angle in Sample Parms as the center of the azimuthal bin; the azimuthat angle in Instrument parms is defined as the mean angle for polarization (only 0-90 & slightly different)
some cosmetic changes to GUI displays
fix imports/G2pwd_fxye.py to handle multi time-maps found in HIPPO data & the slightly screwy one in HIPD data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2pwd_fxye.py

    r1829 r1834  
    135135            N = len(x)
    136136            if self.clockWd:
    137                 x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]])
     137                if len(self.clockWd) == 1:
     138                    x = Tmap2TOF(self.TimeMap['1'],self.clockWd['1'])
     139                else:
     140                    x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]])
    138141            return [np.array(x),np.array(y),np.array(w),np.zeros(N),np.zeros(N),np.zeros(N)]
    139142       
     
    177180            N = len(x)
    178181            if self.clockWd:
    179                 x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]])
     182                if len(self.clockWd) == 1:
     183                    x = Tmap2TOF(self.TimeMap['1'],self.clockWd['1'])
     184                else:
     185                    x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]])
    180186            return [np.array(x),np.array(y),np.array(w),np.zeros(N),np.zeros(N),np.zeros(N)]
    181187           
     
    213219            cons = TimeMap[8:].split()
    214220            mapNo = cons[0]
    215             if mapNo == '10': mapNo = '1'   #HIPD cluge!
     221            if 'TIME_MAP10' in TimeMap: mapNo = '1'   #HIPD cluge!
    216222            Nch = int(cons[1])
    217223            Nrec = int(cons[2])
Note: See TracChangeset for help on using the changeset viewer.