code: def getdarkimg(self,chip):
          
  
          # Read the temperature dependeant dark file.  The name for the file is taken from
          # the TEMPFILE keyword in the primary header.
          tddobj = readTDD.fromcalfile(self.name)
  
          if tddobj is None:
              return np.ones(self.full_shape, dtype=self.image_dtype) * self.getdarkcurrent()
          else:
              # Create Dark Object from AMPGLOW and Lineark Dark components
              darkobj = tddobj.getampglow() + tddobj.getlindark()
  
              # Return the darkimage taking into account an subarray information available
              return darkobj[self.ltv2:self.size2,self.ltv1:self.size1]
docs: Return an array representing the dark image for the detector.
  
          Returns
          -------
          dark : array
              The dark array in the same shape as the image with **units of cps**.