def readHeader(self,):
    if not self.parameters:
      Raxis.readHeader(self)

      self.np = int(round(self.head['sizeSlow']/self.head['sizeFast']*self.head['nFast']))

      # assume that the slow dimension has longer pixels, as for the Raxis-II
      assert self.head['sizeSlow'] > self.head['sizeFast']

      # assume that the original pixel array is square
      assert  self.head['nFast'] == self.head['nSlow']

      # assume that the extra pixels can be evenly divided by two
      assert (self.np-self.head['nSlow'])%2==0

      self.extra = (self.np-self.head['nSlow'])//2

      self.generic_param_from_vendor_head()
      self.generic_param_from_adapt_head()
Beispiel #2
0
 def __init__(self, filename):
     DetectorImageBase.__init__(self, filename)
     Raxis.__init__(self, filename)
     self.vendortype = "RAXIS"
Beispiel #3
0
 def readHeader(self, ):
     if not self.parameters:
         Raxis.readHeader(self)
         self.generic_param_from_vendor_head()
Beispiel #4
0
 def __init__(self,filename):
   DetectorImageBase.__init__(self,filename)
   Raxis.__init__(self,filename)
   self.vendortype = "RAXIS"
Beispiel #5
0
 def readHeader(self,):
   if not self.parameters:
     Raxis.readHeader(self)
     self.generic_param_from_vendor_head()