nmrglue.fileio.table.reorder_columns

nmrglue.fileio.table.reorder_columns(rec, new_order)[source]

Reorder or delete columns in a records array.

Parameters :

rec : recarray

Records array.

new_order : list

List of column indices and order in new records array. Only the columns in this list are retained in the new records array. Therefore this function can also be used to delete multiple columns from a records array.

Returns :

new_rec : recarray

New records array with columns reordered.

Previous topic

nmrglue.fileio.table.delete_column

Next topic

nmrglue.fileio.table.pipe2glue

This Page