[AstroPy] Selecting data from ascii.table with multiple conditions
Yannick Roehlly
yannick.roehlly at oamp.fr
Fri Oct 25 01:55:38 EDT 2013
Le Fri, 25 Oct 2013 02:24:38 +0530,
Joe Philip Ninan <indiajoe at gmail.com> a écrit :
> Mytable[np.where((Mytable['ID']>60).data &
> (Mytable['MAG']>18).data)]['MAG'].data.data
>
> Quite a lot of ".data" to be appended !!
> Am i missing some feature astropy already has for doing these kind of
> data selection from table?
Hi Joe,
How do you read your table ?
Mytable[(Mytable['ID']>60) & (Mytable['MAG']>18)] should do what you
want.
Cheers,
Yannick
--
You will never amount to much.
-- Munich Schoolmaster, to Albert Einstein, age 10
More information about the AstroPy
mailing list