def getScales(data, iSub):
  """
  Return scales for a particular subint.
    Inputs:
      data: PyFITS object.
      iSub: index of subint (first subint is 0).
    Output:
      scales: subint scales (there is one value for each channel).
  """
  return data["SUBINT"].data[iSub]["DAT_SCL"]