title: How can I combine two FITS tables into a single table in new fits file?
body: <p>I have two fits file data (file1.fits and file2.fits). The first one (file1.fits) consists of 80,700 important rows of data and another one is 140,000 rows. The both of them have the same Header. </p>
  
  <pre><code>$ python
  &gt;&gt;&gt; import pyfits 
  &gt;&gt;&gt; f1 = pyfits.open('file1.fits')
  &gt;&gt;&gt; f2 = pyfits.open('file2.fits')
  &gt;&gt;&gt; event1 = f1[1].data
  &gt;&gt;&gt; event2 = f2[1].data
  &gt;&gt;&gt; len(event1)
  80700
  &gt;&gt;&gt; len(event2)
  140000
  </code></pre>
  
  <p>How can I combine file1.fits and file2.fits into new fits file (newfile.fits) with the same header as the old ones and the total number of rows of newfile.fits is 80,700+ 140,000 = 220,700 ?</p>