0

I want to know how to get the information from a table using tinfo. basically I have a table named "coords" and I am running:

tinfo("coords")

but I dont know how to get the output from this task. For example the number of columns "ncols". From the manual of the tinfo task they show the following example:

"Get size information about the file m87pol.tab, but do not print the information to STDOUT, just put the values into parameters"

tinfo m87pol ttout=no

What does it means: Put the values into parameters? How you get the information?

I tried also with the option ttout=yes (display values on terminal) but it shows only the default values and not the real information from the table.

olebole
  • 521
  • 4
  • 17
Lorz.Astro
  • 23
  • 7
  • this is about iraf not astropy, right? – MSeifert Mar 22 '17 at 16:02
  • Astropy is a huge library for astronomy where Pyraf and IRAF are also very much related. – Lorz.Astro Mar 22 '17 at 17:06
  • I know the libraries but pyraf/iraf has nothing to do with astropy. – MSeifert Mar 22 '17 at 17:20
  • Well, that is not the main point of the topic. Please try to contribute to the question itself. Thank you! – Lorz.Astro Mar 22 '17 at 19:24
  • I disagree, it may not be the main point but an important point. I try to figure out if an answer based solely on astropy may be appropriate and there the question text indicates **no** while the tags say **yes**. – MSeifert Mar 22 '17 at 19:26
  • 1
    Have you tried something like `tinfo.ncols=` after running `tinfo m87pol ttout=n`? –  Mar 23 '17 at 05:32
  • Yes! That is working. I am doing print(tinfo.ncols) and works perfectly. Thank you very much for your help! – Lorz.Astro Mar 25 '17 at 08:17

0 Answers0