docs: def extract_slitlet2d(image_2k2k, sltlim):
      """Extract slitlet 2d image from image with original EMIR dimensions.
  
      Parameters
      ----------
      image_2k2k : 2d numpy array, float
          Original image (dimensions NAXIS1 * NAXIS2)
      sltlim : instance of SlitLimits class
          Object containing relevant information concerning the slitlet
          region to be extracted.
  
      Returns
      -------
      slitlet2d : 2d numpy array, float
          Image corresponding to the slitlet region defined by its
          bounding box.
  
      """
  
      # extract slitlet region
      slitlet2d = image_2k2k[(sltlim.bb_ns1_orig - 1):sltlim.bb_ns2_orig,
                             (sltlim.bb_nc1_orig - 1):sltlim.bb_nc2_orig]
  
      # transform to float
      slitlet2d = slitlet2d.astype(np.float)
  
      # return slitlet image
      return slitlet2d