akearney
akearney

Reputation: 1

How to convert a two column fits table into a 2D array in python

I have a 2 column binary table held in a fits file and I'm reading it into my program using Table from astropy.table. I want to now store the values in a 2D array rather than a table but haven't found a way to do this. Any ideas on how to get started on this would be great!

Upvotes: 0

Views: 1297

Answers (1)

Joe
Joe

Reputation: 7131

Try to access the .data property of the table, should be an array. See also Converting astropy.table.columns to a numpy array

Upvotes: 1

Related Questions