nmrglue.fileio.table.reorder_rows
- nmrglue.fileio.table.reorder_rows(rec, new_order)[source]
Reorder or delete rows in a records array.
This function can also be used to delete multiple rows from a records array, only the rows in the new_order list are retained in the new records array.
- Parameters
- recrecarray
Records array.
- new_orderlist
List of row indices and order in new records array. Only the rows in this list are retained in the new records array. Therefore this function can also be used to delete multiple rows from a records array.
- Returns
- new_recrecarray
New records array with rows reordered.