title: Select Rows from Numpy Rec Array
body: <p>I have a Numpy rec array from which I would like to do some quick queries similar to SQL: <code>SELECT * where array['phase'] == "P"</code>. I would like to get a Record Array as output with each row corresponding to a row from the original array that met the query criteria. Any ideas? I am pretty sure I have done this before, but just cannot remember the function.</p>
  
  <p>Thanks</p>
  
  <pre><code>rec.array([ (5295499, 2.8123965, 127.20443, 0.0, 1237680436.06, 908, -19.942589, 134.33951, 0.3888, 'P', 0.19513991),
         (5295499, 2.8123965, 127.20443, 0.0, 1237680436.06, 1387, -18.102, 125.639, 0.11, 'P', 1.2515257),
         (5447254, 39.025873, 143.31065, 0.0, 1245455521.85, 1512, 33.121667, 130.87833, 0.573, 'LR', 45.099504)], 
        dtype=[('eventid', '&lt;i4'), ('eventlat', '&lt;f8'), ('eventlon', '&lt;f8'), ('eventdepth', '&lt;f8'), ('eventtime', '&lt;f8'), ('stationid', '&lt;i4'), ('stationlat', '&lt;f8'), ('stationlon', '&lt;f8'), ('stationelv', '&lt;f8'), ('phase', '|S7'), ('timeresidual', '&lt;f8')])
  </code></pre>